diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2018-05-11 09:41:23 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2018-05-11 09:41:23 -0700 |
commit | 2875d62f0de6eedc5db04ca467d2859c8dcd781d (patch) | |
tree | 78d712dd378da0552f623a38affa2febf17a4418 /.shenv | |
parent | 9290b12f8d1c6ada15a504ad78cb0b5936bf29ff (diff) | |
download | dotfiles-2875d62f0de6eedc5db04ca467d2859c8dcd781d.tar.gz |
embed copies of stow and mr in dotfiles repo more sensibly
Diffstat (limited to '.shenv')
-rwxr-xr-x | .shenv | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -45,6 +45,20 @@ export VISUAL # ---- set $PATH +# backup embedded copies of mr and stow + +mrf=$(which mr) +if ! [ -x "$mrf" ]; then + PATH="$HOME/src/dotfiles/lib/bins/mr:$PATH" +fi +unset mrf + +stowf=$(which stow) +if ! [ -x "$stowf" ]; then + PATH="$HOME/src/dotfiles/lib/bins/stow:$PATH" +fi +unset stowf + # this function prepends $addition to $PATH iff $addition isn't # already in $PATH and $addition is a directory maybe_add_to_path () @@ -67,8 +81,8 @@ addition="$HOME/local/bin"; maybe_add_to_path addition="$HOME/.cabal/bin"; maybe_add_to_path addition="$HOME/.local/bin"; maybe_add_to_path addition="/meta/s/spw/local/src/git-annex.linux"; maybe_add_to_path - unset addition + export PATH # ---- maybe add to $MANPATH |