diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2018-12-09 13:24:33 -0500 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2018-12-09 13:24:33 -0500 |
| commit | 9d045de220bba2da47675a1fb4510a0b940ec5c4 (patch) | |
| tree | 94c13e546082f091523e52a53da6f9cebfeeabb9 /mkshrc | |
| parent | 4b9f5359d6a0c3849fdfb1cf8d80a6938ac462a1 (diff) | |
| download | dotfiles-9d045de220bba2da47675a1fb4510a0b940ec5c4.tar.gz dotfiles-9d045de220bba2da47675a1fb4510a0b940ec5c4.tar.xz | |
Allow overriding of the GOPATH more easily
Diffstat (limited to 'mkshrc')
| -rw-r--r-- | mkshrc | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -254,6 +254,15 @@ set_nocaps() { setxkbmap -option ctrl:nocaps setxkbmap -option shift:breaks_caps } +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 @@ -506,13 +515,6 @@ MY_LANG="en_US.UTF-8" export EDITORS="ed vi vim " export PATH="$HOME/bin:$PATH" -export GOPATH="$HOME/go" -export PATH="$GOPATH/bin:$PATH" - -_gobin="/usr/local/go/bin" -if [ -e "$_gobin" ] ; then - export PATH="$_gobin:$PATH" -fi UPDATE_URL="https://www.rygel.us/etc/" VIM_GIT_URL="https://git.riedstra.us/mitch/vim-cfg.git" @@ -529,6 +531,7 @@ if [ -e $PRELOAD ] ; then . $PRELOAD fi +set_go set_pager set_editor set_lang $MY_LANG |
