git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/.bash/vars.bash
diff options
context:
space:
mode:
authormail_redacted_for_web 2024-05-25 12:57:51 +0200
committermail_redacted_for_web 2024-05-25 12:57:51 +0200
commit47fb31b3896a63ddee824567460dc9e8ebf3eaa5 (patch)
tree42df27bc25134d8431de509a130f59a734737009 /.bash/vars.bash
parent1d5f4b8d45978071316e322fd186c0522daba0de (diff)
downloaddotfiles-47fb31b3896a63ddee824567460dc9e8ebf3eaa5.tar.bz2
include ~/.local/bin as well, only include dirs that are descendible into
Diffstat (limited to '.bash/vars.bash')
-rw-r--r--.bash/vars.bash8
1 files changed, 5 insertions, 3 deletions
diff --git a/.bash/vars.bash b/.bash/vars.bash
index 773d75d..da222b1 100644
--- a/.bash/vars.bash
+++ b/.bash/vars.bash
@@ -18,9 +18,11 @@ SSHAGH+=( "woschd.example.com" )
export SSHAGH
# ----- SHELL ----- #
-for pa in "/usr/local/bin" "${HOME}/bin";do
- if ! printf "%b" "$PATH"|grep -P "^${pa}:|:${pa}:" >/dev/null;then
- export PATH="${pa}:${PATH}"
+for pa in "/usr/local/bin" "${HOME}/bin" "${HOME}/.local/bin";do
+ if [ -x "$pa" ]; then
+ if ! printf "%b" "$PATH"|grep -P "^${pa}:|:${pa}:" >/dev/null;then
+ export PATH="${pa}:${PATH}"
+ fi
fi
done
# $OSNAME