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/bash | 1 + shell/misc | 9 --------- shell/utils | 9 +++++++++ 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/shell/bash b/shell/bash index 1106665..ae7d3b4 100644 --- a/shell/bash +++ b/shell/bash @@ -5,6 +5,7 @@ setcoloraliases setlscolors set_pager set_editor +set_go setaliases setsudoaliases diff --git a/shell/misc b/shell/misc index c589f10..3cdabeb 100644 --- a/shell/misc +++ b/shell/misc @@ -1,13 +1,4 @@ -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 -} pkg_switch_branch() { _f="/etc/pkg/FreeBSD.conf" cp $_f ${_f}.orig 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