aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sh/profile.d/go.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/sh/profile.d/go.sh b/sh/profile.d/go.sh
new file mode 100644
index 00000000..51439221
--- /dev/null
+++ b/sh/profile.d/go.sh
@@ -0,0 +1,7 @@
+# Define path for Go code to be installed
+GOPATH=$HOME/.local/gocode
+export GOPATH
+
+# Prepend GOPATH to PATH for the executables
+PATH=$GOPATH/bin:$PATH
+