Skip to content

Instantly share code, notes, and snippets.

@Ezku
Created April 2, 2015 13:14
Show Gist options
  • Save Ezku/21ae60e8aada984aea35 to your computer and use it in GitHub Desktop.
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
# 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