.profile: Only add GOPATH to PATH once

This commit is contained in:
Salt 2019-02-01 14:42:51 -06:00
parent fd45004134
commit 9bae092872

View File

@ -85,7 +85,7 @@ fi
# Set up go, if we have it # Set up go, if we have it
if command -v go > /dev/null 2>&1; then if command -v go > /dev/null 2>&1; then
export GOPATH="$HOME/.local/go" export GOPATH="$HOME/.local/go"
export PATH="$PATH:$GOPATH/bin" [ "${PATH#*$GOPATH}" = "$PATH" ] && export PATH="$PATH:$GOPATH/bin"
fi fi
# Grab dircolors, if it exists # Grab dircolors, if it exists