Skip to content

Instantly share code, notes, and snippets.

@desandro
Created November 29, 2010 15:49
Show Gist options
  • Save desandro/720107 to your computer and use it in GitHub Desktop.
Save desandro/720107 to your computer and use it in GitHub Desktop.
Terminal styles and aliases
# Aliases
alias showhidden="defaults write com.apple.finder AppleShowAllFiles TRUE; killall Finder"
alias hidehidden="defaults write com.apple.finder AppleShowAllFiles FALSE; killall Finder"
alias myip="echo ethernet:; ipconfig getifaddr en0; echo wireless:; ipconfig getifaddr en1"
alias gitx="open -a GitX ."
alias ohmygit="open .; mate .; gitx"
alias jkas="jekyll --auto --server"
alias rmjkas="rm -rf _site/* && jkas"
alias symlink="ln -s"
# http://snippets.dzone.com/posts/show/2486
alias killsvn="find . -name ".svn" -type d -exec rm -rf {} \;"
# git add remote branch
function garb() {
echo "Adding remote branch '$1'";
git config branch.$1.remote origin;
git config branch.$1.merge refs/heads/$1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment