Add go paths
Also improve comments.
This commit is contained in:
parent
0916d0d54a
commit
1565ba2beb
1 changed files with 12 additions and 2 deletions
14
.zprofile
14
.zprofile
|
@ -26,12 +26,22 @@ if [ -n "$BASH_VERSION" ]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
# set PATH so it includes user's private bin if it exists
|
||||
# if `$HOME/.local/bin` exists, add it to $PATH
|
||||
if [ -d "$HOME/.local/bin" ] ; then
|
||||
PATH="$HOME/.local/bin:$PATH"
|
||||
fi
|
||||
|
||||
# set PATH so it includes user's .cargo/bin
|
||||
# if `$HOME/.cargo/bin` exists, add it to $PATH
|
||||
if [ -d "$HOME/.cargo/bin" ] ; then
|
||||
PATH="$HOME/.cargo/bin:$PATH"
|
||||
fi
|
||||
|
||||
# if `$HOME/go/bin` exists, add it to $GOPATH
|
||||
if [ -d "$HOME/go/bin" ] ; then
|
||||
GOPATH="$HOME/go/bin"
|
||||
fi
|
||||
|
||||
# if `/usr/local/go/bin` exists, add it and $GOPATH to $PATH
|
||||
if [ -d "/usr/local/go/bin" ] ; then
|
||||
PATH="/usr/local/go/bin:$GOPATH:$PATH"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue