Removed hardcoded GOPATH

This commit is contained in:
Jonas Forsberg 2020-05-11 08:43:03 +02:00
parent 6ba2a64393
commit 712a510a8e
No known key found for this signature in database
GPG Key ID: F2E9818C70350CC9

View File

@ -4,7 +4,7 @@ export HISTFILESIZE=-1
test -s ~/.alias && . ~/.alias || true
export PATH=~/.local/bin:"$PATH"
[[ -d ~/go/bin ]] && export PATH="$PATH":$HOME/go/bin
type go >/dev/null 2>&1 && export GOPATH=$(go env GOPATH) && export PATH="$PATH":$GOPATH/bin
# needed for pw function and gnupg.vim
GPG_TTY=$(tty)
@ -25,7 +25,6 @@ fi
# Go Bullet Train settings
[[ -f "$HOME/go/bin/gbt" ]] && [[ -f "$HOME/.gbt.sh" ]] && source "$HOME/.gbt.sh"
type go >/dev/null 2>&1 && export GOPATH=$(go env GOPATH)
[[ -f "$HOME/.functions.sh" ]] && source ~/.functions.sh
[[ -f "$HOME/Develop/sps/completion.sh" ]] && source ~/Develop/sps/completion.sh