Skip to content

Commit

Permalink
Don't quick-jump into go projects
Browse files Browse the repository at this point in the history
  • Loading branch information
holman committed Jun 11, 2018
1 parent b943fe1 commit 80b2bd5
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions functions/c
Expand Up @@ -12,13 +12,5 @@
# c holm<tab>/bo<tab>
#
# ...to quickly jump into holman/boom, for example.
#
# This also accounts for how Go structures its projects. For example, it will
# autocomplete both on $PROJECTS, and also assume you want to autocomplete on
# your Go projects in $GOPATH/src.

if [ ! -z "$1" ] && [ -s "$GOPATH/src/github.com/$1" ]; then
cd "$GOPATH/src/github.com/$1"
else
cd "$PROJECTS/$1"
fi
cd "$PROJECTS/$1"

0 comments on commit 80b2bd5

Please sign in to comment.