Fix golang unfortunate default path

This commit is contained in:
lara 2020-12-23 17:16:16 +01:00
parent d04a1766d2
commit c408c536b5

3
zshrc
View file

@ -17,6 +17,9 @@ export PATH="$PATH:/Library/Frameworks/Python.framework/Versions/3.8/bin:/usr/lo
RC_PATH=$(dirname "$(realpath -- "${(%):-%x}")") RC_PATH=$(dirname "$(realpath -- "${(%):-%x}")")
export PATH="$PATH:$RC_PATH/bin:~/bin:/opt/cuda/bin:~/.cargo/bin:~/go/bin" 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 # Add ruby gems to path
if which ruby >/dev/null && which gem >/dev/null; then if which ruby >/dev/null && which gem >/dev/null; then
PATH="$(ruby -r rubygems -e 'puts Gem.user_dir')/bin:$PATH" PATH="$(ruby -r rubygems -e 'puts Gem.user_dir')/bin:$PATH"