Skip to content

Instantly share code, notes, and snippets.

@resure
Created October 21, 2012 19:28
Show Gist options
  • Save resure/3928191 to your computer and use it in GitHub Desktop.
Save resure/3928191 to your computer and use it in GitHub Desktop.
c() { cd ~/code/$1; }
_c() { _files -W ~/code -/; }
compdef _c c
h() { cd ~/$1; }
_h() { _files -W ~/ -/; }
compdef _h h
export EDITOR='mate -w'
# autocorrect is more annoying than helpful
unsetopt correct_all
# a few aliases I like
alias gs='git status'
alias gd='git diff'
alias tlog='tail -f log/development.log'
alias gcma='git commit -am'
alias gcm='git commit -m'
alias gca='git commit -a'
alias go='git checkout'
# add plugin's bin directory to path
export PATH="$(dirname $0)/bin:$PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment