dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 0e4400610dc0d5f4d1273a0870adcbf11f188dc1
parent c82e6c1833a2adb95341ee52cd21b5a42ae84807
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Tue, 15 Jan 2019 17:27:12 +0100

Change default go path to ~/.go


Former-commit-id: 68f33b51409a7627299e015a6f9774fcc58d4c09
Diffstat:
Mshell/commonprofile | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/shell/commonprofile b/shell/commonprofile @@ -29,10 +29,10 @@ fi # Golang if command -v go &> /dev/null; then - if [[ $PATH != *"$(go env GOPATH)"* ]]; then - PATH=$PATH:$(go env GOPATH)/bin + GOPATH="$HOME"/.go + if [[ $PATH != *"$GOPATH"* ]]; then + PATH=$PATH:"$GOPATH"/bin fi - GOPATH=$(go env GOPATH) fi # Set a variable for my confidr CONF_DIR="$HOME/.dotfiles"