From 77610f0f7205d5e50b889600ef8df6d2436bed2f Mon Sep 17 00:00:00 2001 From: David Runge Date: Sat, 24 Nov 2018 14:41:07 +0100 Subject: .zsh.before/path.zsh: Adding pyenv python versions to path if available. --- .zsh.before/path.zsh | 10 ++++++---- 1 file 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" + -- cgit v1.2.3-70-g09d2