summaryrefslogtreecommitdiff
path: root/.shenv
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2018-05-11 09:41:23 -0700
committerSean Whitton <spwhitton@spwhitton.name>2018-05-11 09:41:23 -0700
commit2875d62f0de6eedc5db04ca467d2859c8dcd781d (patch)
tree78d712dd378da0552f623a38affa2febf17a4418 /.shenv
parent9290b12f8d1c6ada15a504ad78cb0b5936bf29ff (diff)
downloaddotfiles-2875d62f0de6eedc5db04ca467d2859c8dcd781d.tar.gz
embed copies of stow and mr in dotfiles repo more sensibly
Diffstat (limited to '.shenv')
-rwxr-xr-x.shenv16
1 files changed, 15 insertions, 1 deletions
diff --git a/.shenv b/.shenv
index 39ea7363..7ea1856e 100755
--- a/.shenv
+++ b/.shenv
@@ -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