From 6ddb42ea07d426fe3d10e93210a55e652416a773 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Sat, 21 Sep 2019 09:17:14 -0400 Subject: modify the bash defaults. Also add in 'set_go' to utils from misc --- shell/utils | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'shell/utils') 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" -- cgit v1.2.3