Created
June 28, 2013 15:24
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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