Permalink
Browse files

clean some go and path stuff

  • Loading branch information...
jmoiron committed Aug 4, 2016
1 parent e18b4c1 commit 3260b36e0c9a44883f7ae256dc9148df8ccd1a69
Showing with 5 additions and 10 deletions.
  1. +5 −10 home/.bashrc
View
@@ -215,14 +215,9 @@ pathclean() {
export PATH="$(printf "%s" "${PATH}" | /usr/bin/awk -v RS=: -v ORS=: '!($0 in a) {a[$0]; print}')"
}
# go development
export GOVERSION=1.5.2
goversion() {
export GOROOT="$HOME/dev/go/root/$1"
export GOPATH="$HOME/dev/go"
export PATH="$GOPATH/bin:$GOROOT/bin:$PATH"
pathclean
}
eval "$(gimme 1.6.2)"
export GOPATH=$HOME/dev/go
export PATH=$GOPATH/bin:$PATH
pathclean
goversion "go$GOVERSION"

0 comments on commit 3260b36

Please sign in to comment.