go: Add GOPATH to PATH
This commit is contained in:
parent
9dd1a7f1ea
commit
12590a4a30
1 changed files with 3 additions and 2 deletions
|
@ -37,8 +37,9 @@ if [ -d "$HOME/.cargo/bin" ] ; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# if `$HOME/go/bin` exists, add it to $GOPATH
|
# if `$HOME/go/bin` exists, add it to $GOPATH
|
||||||
if [ -d "$HOME/go/bin" ] ; then
|
if [ -d "$HOME/.go/bin" ] ; then
|
||||||
GOPATH="$HOME/go/bin"
|
GOPATH="$HOME/.go/bin"
|
||||||
|
PATH="$GOPATH:$PATH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# if `/usr/local/go/bin` exists, add it and $GOPATH to $PATH
|
# if `/usr/local/go/bin` exists, add it and $GOPATH to $PATH
|
||||||
|
|
Loading…
Reference in a new issue