From 712a510a8ed7c645199167af8f46d3cc5e2ff3c6 Mon Sep 17 00:00:00 2001 From: Jonas Forsberg Date: Mon, 11 May 2020 08:43:03 +0200 Subject: [PATCH] Removed hardcoded GOPATH --- .bashrc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.bashrc b/.bashrc index 820cbcf..adaf2b7 100644 --- a/.bashrc +++ b/.bashrc @@ -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