Cleaned up gvm use strategy

This commit is contained in:
Joshua Bussdieker
2011-11-18 00:41:58 -08:00
parent 75d0810f55
commit cee4f4d74e
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -2,7 +2,8 @@
if [[ $1 == "use" ]]; then
if [[ -n $2 ]]; then
cp ~/.gvm/gos/go-$2/bin/* ~/.gvm/bin
rm ~/.gvm/gos/default
ln -sf ~/.gvm/gos/go-$2 ~/.gvm/gos/default
echo "Now using version $2"
exit 0
else
+2 -1
View File
@@ -1,2 +1,3 @@
export GVM_VERSION=`cat ~/.gvm/VERSION`
export PATH=$PATH:~/.gvm/bin
export GOROOT=~/.gvm/gos/default
export PATH=$PATH:~/.gvm/bin:~/.gvm/gos/default/bin