fixed sourcing for go on my work box

pull/1/merge
Adam Veldhousen 2015-01-21 13:59:59 -06:00
parent 462b343032
commit 45f7654f99
3 changed files with 8 additions and 10 deletions

View File

@ -14,12 +14,6 @@ if [ -f ~/.dev_profile ]; then
. ~/.dev_profile
fi
# if there is a C:/Projects folder on this box then I'm obviously using my work computer
if [ -d "C:/Projects" ]; then
export WORK="TRUE"
. ~/.work_profile
fi
# Load pretty colors
if [ -f ~/.shell_colors ]; then
. ~/.shell_colors

View File

@ -1,5 +1,6 @@
#!/bin/bash
# Setup go paths and source go bin
if [ -d "/c/Windows" ]; then
export WINDOWS="TRUE"
@ -14,6 +15,11 @@ else
export WINDOWS="FALSE"
fi
# if there is a C:/Projects folder on this box then I'm obviously using my work computer
if [ -d "/c/Projects" ]; then
export WORK="TRUE"
. ~/.work_profile
fi
export GOBIN=${GOPATH}/bin
PATH=${PATH}:${GOBIN}:${GOROOT}/bin

View File

@ -5,8 +5,6 @@ fi
alias projects='cd /c/Projects'
if [ -d "/c/Windows" ]; then
export GOROOT="/c/Go"
export GOPATH="/c/Projects/Go"
fi
export GOROOT="/c/Go"
export GOPATH="/c/Projects/Go"