Skip to content

Instantly share code, notes, and snippets.

@erickrause
Created June 28, 2013 15:24
Show Gist options
  • Save erickrause/5885512 to your computer and use it in GitHub Desktop.
Save erickrause/5885512 to your computer and use it in GitHub Desktop.
'c' to get to ~/code with directory tab completion. I use this for zsh, should work for bash as well.
function c() {
cd ~/code/$1;
}
#compdef c
function _c () {
_files -W ~/code -/
}
compdef _c c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment