diff options
-rw-r--r-- | .zsh.before/path.zsh | 40 |
1 files changed, 10 insertions, 30 deletions
diff --git a/.zsh.before/path.zsh b/.zsh.before/path.zsh index 0f8ea6f..f87ba45 100644 --- a/.zsh.before/path.zsh +++ b/.zsh.before/path.zsh @@ -1,34 +1,15 @@ -# < BEFORE $PATH -#PATH=$HOME/bin:$PATH -# > BEFORE - -# < AFTER $PATH -#PATH=$PATH:"/opt/scilab-4.1.2/bin" -#PATH=$PATH:"/opt/java6/bin":"/opt/java6/jre/bin" -#PATH=$PATH:/extra/DF3120/minifs/toolchain/arm-v4t-linux-uclibcgnueabi/bin -# ANDROID -#PATH=$PATH:"/opt/android-sdk/tools" -#PATH=$PATH:"/opt/android-sdk/platform-tools" -#PATH=$PATH:"/extra/android/cyanogenmod/out/host/linux-x86/bin" - -## RVM -PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting - - # Add $HOME/bin before /usr/local/sbin and /usr/local/bin in $PATH # Also works if they are switched -if [[ "$HOST" != *giev* ]];then - autoload -U regexp-replace - if [[ "$PATH" != *dave/bin:/usr/local/sbin* ]];then - case "$PATH" in - */usr/local/bin:/usr/local/sbin*) - regexp-replace PATH '/usr/local/bin:/usr/local/sbin:' '$HOME/bin:/usr/local/sbin:/usr/local/bin:' - ;; - */usr/local/sbin:/usr/local/bin*) - regexp-replace PATH '/usr/local/sbin:/usr/local/bin:' '$HOME/bin:/usr/local/sbin:/usr/local/bin:' - ;; - esac - fi +autoload -U regexp-replace +if [[ "$PATH" != *dave/bin:/usr/local/sbin* ]];then + case "$PATH" in + */usr/local/bin:/usr/local/sbin*) + regexp-replace PATH '/usr/local/bin:/usr/local/sbin:' '$HOME/bin:/usr/local/sbin:/usr/local/bin:' + ;; + */usr/local/sbin:/usr/local/bin*) + regexp-replace PATH '/usr/local/sbin:/usr/local/bin:' '$HOME/bin:/usr/local/sbin:/usr/local/bin:' + ;; + esac fi ## RASPBERRY PI @@ -36,4 +17,3 @@ if [[ "$HOST" == *pitheunlord* ]]; then PATH=$PATH:"/opt/vc/bin:/opt/vc/sbin" fi -# > AFTER |