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