diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2019-09-21 09:17:14 -0400 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2019-09-21 09:17:14 -0400 |
| commit | 6ddb42ea07d426fe3d10e93210a55e652416a773 (patch) | |
| tree | 3e22bc0e444710294fdae3e12c00475636138365 /shell/utils | |
| parent | fc880dddb444ef9059697e9522a5a0cee44aaf5c (diff) | |
| download | dotfiles-6ddb42ea07d426fe3d10e93210a55e652416a773.tar.gz dotfiles-6ddb42ea07d426fe3d10e93210a55e652416a773.tar.xz | |
modify the bash defaults. Also add in 'set_go' to utils from misc
Diffstat (limited to 'shell/utils')
| -rw-r--r-- | shell/utils | 9 |
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" |
