From cda1aa645fcda1a514b73d7e69ceaff7e615ee32 Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Thu, 29 Oct 2015 15:40:27 -0500 Subject: [PATCH] .bashrc: Setup $GOPATH --- .bashrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.bashrc b/.bashrc index caf2109..69e7021 100644 --- a/.bashrc +++ b/.bashrc @@ -82,6 +82,12 @@ test -d "$HOME/bin" && test -d "$HOME/sbin" && PATH="$HOME/sbin:$PATH" +# setup $GOPATH +test -d "/usr/local/share/golang" && + export GOPATH=/usr/local/share/golang +test -n "$GOPATH" && + PATH="$PATH:$GOPATH/bin" + # ---------------------------------------------------------------------- # ENVIRONMENT CONFIGURATION # ---------------------------------------------------------------------- -- 2.43.0