From 9bae0928726b5d7f5481361dac786ea58faa7234 Mon Sep 17 00:00:00 2001 From: Salt Date: Fri, 1 Feb 2019 14:42:51 -0600 Subject: [PATCH] .profile: Only add GOPATH to PATH once --- .profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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