aboutsummaryrefslogtreecommitdiffstats
path: root/.zsh.before/path.zsh
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2018-12-02 11:55:47 +0100
committerDavid Runge <dave@sleepmap.de>2018-12-02 11:55:47 +0100
commitb04ae4151c89f2e72cbfddfa4e55d55573027642 (patch)
treefefdea3ba2da56ec68df4ae77f2a5c2fce92eb49 /.zsh.before/path.zsh
parent95c2b4b24a41a7e72b86aa44e2bfb96d450f85d5 (diff)
parent720930e87fbb977393740107f08129d867a9cf04 (diff)
downloaddotfiles-b04ae4151c89f2e72cbfddfa4e55d55573027642.tar.gz
dotfiles-b04ae4151c89f2e72cbfddfa4e55d55573027642.tar.bz2
dotfiles-b04ae4151c89f2e72cbfddfa4e55d55573027642.tar.xz
dotfiles-b04ae4151c89f2e72cbfddfa4e55d55573027642.zip
Merge branch 'master' of sleepmap.de:config/dotfiles
* 'master' of sleepmap.de:config/dotfiles: .ssh/config: Adding hosts apu-access, apu-serve, dvzrv. Fixing User name declaration. Fixing too unspecific ProxyCommand. .zsh.before/path.zsh: Adding pyenv python versions to path if available. .zsh.after/export.zsh: Expanding check for and setting of locale settings to very special whackOS settings. Exporting pipenv settings to expose them globally. Exporting TTY to GPG_TTY instead of calling tty everytime. .gitignore: Adding whackOS specific ignores.
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"
+