aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <david.runge@frqrec.com>2014-11-28 17:22:59 +0100
committerDavid Runge <david.runge@frqrec.com>2014-11-28 17:22:59 +0100
commitc400a4e039e785d2224f3f17faceb46195e24da8 (patch)
treefd64a6e73111002a5a9761815d1a81727cd515ab
parent2b65894642922cf5c94be8b65a963f655fd4b5c0 (diff)
downloaddotfiles-c400a4e039e785d2224f3f17faceb46195e24da8.tar.gz
dotfiles-c400a4e039e785d2224f3f17faceb46195e24da8.tar.bz2
dotfiles-c400a4e039e785d2224f3f17faceb46195e24da8.tar.xz
dotfiles-c400a4e039e785d2224f3f17faceb46195e24da8.zip
path.zsh: Removed rvm, useless comments and if statements.
-rw-r--r--.zsh.before/path.zsh40
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