aboutsummaryrefslogtreecommitdiffstats
path: root/.zsh.before/path.zsh
diff options
context:
space:
mode:
Diffstat (limited to '.zsh.before/path.zsh')
-rw-r--r--.zsh.before/path.zsh10
1 files changed, 6 insertions, 4 deletions
diff --git a/.zsh.before/path.zsh b/.zsh.before/path.zsh
index 52238b3..146943d 100644
--- a/.zsh.before/path.zsh
+++ b/.zsh.before/path.zsh
@@ -1,7 +1,6 @@
-# Prepend $HOME/bin and append /usr/sbin to PATH (for Debilian)
-PATH="$HOME/bin:$PATH:/usr/sbin"
-if [[ -d "$HOME/.pyenv/shims" ]]; then
- PATH="$HOME/.pyenv/shims:$PATH"
+# prepend pyenv based python, in case there's any
+if [ -d "$HOME/.local/bin" ] && [ -d "$HOME/.pyenv/shims" ]; then
+ PATH="$HOME/.local/bin:$HOME/.pyenv/shims:$PATH"
fi
## RASPBERRY PI
@@ -9,3 +8,6 @@ if [[ "$HOST" == *pitheunlord* ]]; then
PATH=$PATH:"/opt/vc/bin:/opt/vc/sbin"
fi
+# Prepend $HOME/bin and append /usr/sbin to PATH (for Debilian)
+PATH="$HOME/bin:$PATH:/usr/sbin"
+