Fix golang unfortunate default path
This commit is contained in:
parent
d04a1766d2
commit
c408c536b5
1 changed files with 3 additions and 0 deletions
3
zshrc
3
zshrc
|
@ -17,6 +17,9 @@ export PATH="$PATH:/Library/Frameworks/Python.framework/Versions/3.8/bin:/usr/lo
|
|||
RC_PATH=$(dirname "$(realpath -- "${(%):-%x}")")
|
||||
export PATH="$PATH:$RC_PATH/bin:~/bin:/opt/cuda/bin:~/.cargo/bin:~/go/bin"
|
||||
|
||||
# Prevent golang from littering $HOME and force it to follow XDG
|
||||
export GOPATH="$HOME/.local/share/go"
|
||||
|
||||
# Add ruby gems to path
|
||||
if which ruby >/dev/null && which gem >/dev/null; then
|
||||
PATH="$(ruby -r rubygems -e 'puts Gem.user_dir')/bin:$PATH"
|
||||
|
|
Loading…
Reference in a new issue