Skip to content

Instantly share code, notes, and snippets.

@capoferro
Created January 14, 2016 22:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save capoferro/ac0bfb89536a538a0989 to your computer and use it in GitHub Desktop.
Save capoferro/ac0bfb89536a538a0989 to your computer and use it in GitHub Desktop.
gocd () {
for i in `find $GOPATH -name $1`
do (sh -c "ls $i/.git 2> /dev/null > /dev/null" || sh -c "ls $i/.hg" 2> /dev/null > /dev/null) && echo "cd $i" && cd $i
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment