Add go paths

Also improve comments.
This commit is contained in:
finga 2021-10-06 15:31:42 +02:00
parent 0916d0d54a
commit 1565ba2beb

View file

@ -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