aboutsummaryrefslogtreecommitdiff
path: root/shell/utils
diff options
context:
space:
mode:
Diffstat (limited to 'shell/utils')
-rw-r--r--shell/utils9
1 files changed, 9 insertions, 0 deletions
diff --git a/shell/utils b/shell/utils
index c597e8a..3fceec8 100644
--- a/shell/utils
+++ b/shell/utils
@@ -1,4 +1,13 @@
+set_go() {
+ export GOPATH="${GOPATH:-$HOME/go}"
+ export PATH="$GOPATH/bin:$PATH"
+
+ _gobin="/usr/local/go/bin"
+ if [ -e "$_gobin" ] ; then
+ export PATH="$_gobin:$PATH"
+ fi
+}
set_editor() {
if [ -z "$EDITORS" ] ; then
export EDITORS="ed vi vim"