]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
shell/env: First add ~/.shell/bin to PATH.
authorSimon Ruderich <simon@ruderich.org>
Fri, 12 Nov 2010 21:51:20 +0000 (22:51 +0100)
committerSimon Ruderich <simon@ruderich.org>
Fri, 12 Nov 2010 21:51:20 +0000 (22:51 +0100)
So scripts in ~/.bin or ~/bin overrule it.

shell/env

index 15d8f4590aba5fa1fab570528f318d09ebde9f7e..d478b17d8b9c5c69844980e38a3549fda3bb2701 100644 (file)
--- a/shell/env
+++ b/shell/env
@@ -10,15 +10,15 @@ LANG=en_US.UTF-8
 export LANG
 
 # Add ~/bin and ~/.bin and ~/.shell/bin to PATH if available.
+if [ -d ~/.shell/bin ]; then
+    PATH=~/.shell/bin:$PATH
+fi
 if [ -d ~/bin ]; then
     PATH=~/bin:$PATH
 fi
 if [ -d ~/.bin ]; then
     PATH=~/.bin:$PATH
 fi
-if [ -d ~/.shell/bin ]; then
-    PATH=~/.shell/bin:$PATH
-fi
 
 # Use Vim as editor.
 EDITOR=vim