Skip to content

Commit

Permalink
bash_profile: Move GO directory to /home/jeffcof/local/go on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffaco committed May 1, 2018
1 parent 551ed6b commit 9deb249
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions nix/bash_profile/bash_profile
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,19 @@ fi
#

if [ -d /usr/local/go ]; then
export PATH=$PATH:/usr/local/go/bin
# Preferences for GO path differ based on O/S

export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
case `uname -s` in
Darwin)
export GOPATH=$HOME/local/go
;;

*)
export GOPATH=$HOME/go
;;
esac

export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
fi

#
Expand All @@ -213,11 +222,13 @@ fi
# Hana-specific configuration
#

export ENLISTMENTROOT=$HOME/dev/hanarp
export PATH=$PATH:${GOPATH//://bin:}/bin
export GOPATH=$GOPATH:$ENLISTMENTROOT:$ENLISTMENTROOT/vendor
if [ -d $HOME/dev/hanarp ]; then
export ENLISTMENTROOT=$HOME/dev/hanarp
export PATH=$PATH:${GOPATH//://bin:}/bin
export GOPATH=$GOPATH:$ENLISTMENTROOT:$ENLISTMENTROOT/vendor

export PATH=.:~/bin:${PATH}
export PATH=.:~/bin:${PATH}
fi

#
# Functions
Expand Down

0 comments on commit 9deb249

Please sign in to comment.