aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <david.runge@native-instruments.de>2018-11-24 14:41:07 +0100
committerDavid Runge <david.runge@native-instruments.de>2018-11-24 14:41:07 +0100
commit77610f0f7205d5e50b889600ef8df6d2436bed2f (patch)
treeaa02ab9e07fa52bcbbd47f640e62a056bc6c80ea
parentf4fec3ab8e56e82bf7904c3c19876e2f4e13667d (diff)
downloaddotfiles-77610f0f7205d5e50b889600ef8df6d2436bed2f.tar.gz
dotfiles-77610f0f7205d5e50b889600ef8df6d2436bed2f.tar.bz2
dotfiles-77610f0f7205d5e50b889600ef8df6d2436bed2f.tar.xz
dotfiles-77610f0f7205d5e50b889600ef8df6d2436bed2f.zip
.zsh.before/path.zsh: Adding pyenv python versions to path if available.
-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"
+