From 0405dd076911be05c1c04fb14f5575f80d8fb637 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 9 Feb 2015 19:22:06 -0500 Subject: cleanup golang settings --- .config/login.d/10_golang.sh | 8 ++++++++ .config/login.d/10_goroot.sh | 3 --- 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 .config/login.d/10_golang.sh delete mode 100644 .config/login.d/10_goroot.sh 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 -- cgit v1.2.3