Prevent double PATH initializing
authorSergey Matveev <stargrave@stargrave.org>
Wed, 13 Nov 2019 10:25:04 +0000 (13:25 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Wed, 13 Nov 2019 10:25:04 +0000 (13:25 +0300)
zsh/.zshenv

index caac2c98a1f9b8c9b8994320b7aa44380e9eb79a..2f9509bae5c9ca769dc7aa269f619e676b524659 100644 (file)
@@ -55,8 +55,8 @@ export XDG_RUNTIME_DIR=/tmp/stargrave-xdg
 
 # Paths {{{
 export CFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib"
-
-export PATH=$HOME/bin:/sbin:/usr/sbin:$PATH
+export PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin
+export PATH=$HOME/bin:$PATH
 
 export MANPATH=/usr/local/share/man:/usr/local/man:/usr/share/man
 export MANPATH=/usr/share/openssl/man:$MANPATH
@@ -73,7 +73,7 @@ export GOCACHE=/tmp/go-cache
 export GOPROXY=direct
 export GOSUMDB=off
 export GOPATH=$HOME/work/gopath
-export PATH=$HOME/work/gopath/bin:$PATH
+export PATH=$GOPATH/bin:$PATH
 # }}}
 
 # Various {{{