From: Simon Ruderich Date: Fri, 12 Nov 2010 21:51:20 +0000 (+0100) Subject: shell/env: First add ~/.shell/bin to PATH. X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=commitdiff_plain;h=003732b24ad7c6562550ae781a9ec01a29a31b0f shell/env: First add ~/.shell/bin to PATH. So scripts in ~/.bin or ~/bin overrule it. --- diff --git a/shell/env b/shell/env index 15d8f45..d478b17 100644 --- 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