Created
July 1, 2014 20:32
-
-
Save itsthatguy/e14e9f2951e37523998a to your computer and use it in GitHub Desktop.
Switch to your git dir with tab completion
This file contains 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
# ZSH: Git Directory switch with tab completion | |
# $ wd [tab] | |
GIT_DIR=$HOME/git | |
wd() { cd $GIT_DIR/$1 } | |
compctl -W $GIT_DIR/ -/ wd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment