fixed sourcing for go on my work box
parent
462b343032
commit
45f7654f99
6
.bashrc
6
.bashrc
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue