Created
April 2, 2015 13:14
-
-
Save Ezku/21ae60e8aada984aea35 to your computer and use it in GitHub Desktop.
Running `source gvp` gets tedious fast, so here’s a script you can place in .zshrc
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
# At every working directory change, if there's a Godeps file then run gvp | |
function switch_godeps() { | |
if [[ -e "Godeps" ]] | |
then | |
source gvp | |
fi | |
} | |
chpwd_functions=(${chpwd_functions[@]} "switch_godeps") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment