diff options
author | Luke Shumaker <shumakl@purdue.edu> | 2015-02-09 19:22:06 -0500 |
---|---|---|
committer | Luke Shumaker <shumakl@purdue.edu> | 2015-02-09 19:22:06 -0500 |
commit | 0405dd076911be05c1c04fb14f5575f80d8fb637 (patch) | |
tree | 8ecea37799eecd4d23f8a00ea6a7dc79736f7233 | |
parent | d88870711561364dfe9a66e59ab548dcb7588162 (diff) |
cleanup golang settings
-rw-r--r-- | .config/login.d/10_golang.sh | 8 | ||||
-rw-r--r-- | .config/login.d/10_goroot.sh | 3 |
2 files changed, 8 insertions, 3 deletions
diff --git a/.config/login.d/10_golang.sh b/.config/login.d/10_golang.sh new file mode 100644 index 0000000..c3ae013 --- /dev/null +++ b/.config/login.d/10_golang.sh @@ -0,0 +1,8 @@ +if [[ -z $GOROOT ]]; then + export GOROOT="/homes/shumakl/.prefix.$(uname -m)/go" + if [[ -d $GOROOT ]]; then + PATH="$PATH:$GOROOT/bin" + else + unset GOROOT + fi +fi diff --git a/.config/login.d/10_goroot.sh b/.config/login.d/10_goroot.sh deleted file mode 100644 index 89d1037..0000000 --- a/.config/login.d/10_goroot.sh +++ /dev/null @@ -1,3 +0,0 @@ -if [[ -z $GOROOT ]]; then - export GOROOT=/homes/shumakl/.prefix.$(uname -m)/go -fi |