]> err.no Git - dotfiles/commitdiff
do evil things to path
authortfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Mon, 11 Nov 2002 01:18:46 +0000 (01:18 +0000)
committertfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Mon, 11 Nov 2002 01:18:46 +0000 (01:18 +0000)
git-svn-id: file:///svn/tfheen/trunk/dotfiles@107 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf

environment

index ed7318900250ec910387e0295d35e27f5e47e9d7..b7988a47431dc4f3d47ddd35042afc74538cadde 100644 (file)
@@ -6,6 +6,23 @@ for lsopt in -B --color=auto -FN; do
     ls $lsopt > /dev/null 2>&1 && LS_OPTIONS="$LS_OPTIONS $lsopt"
 done
 
+setpathifdir () {
+    if [ -d "$1" ]; then
+        PATH="$1:${PATH%$1}"
+    fi
+}
+
+appendpathifdir () {
+    if [ -d "$1" ]; then
+        PATH="${PATH%$1}:$1"
+    fi
+}
+
+appendpathifdir /store/gnu/bin
+appendpathifdir /store/bin
+setpathifdir $HOME/bin
+setpathifdir $HOME/usr/bin
+
 CVSROOT=~/data/cvs
 EDITOR=emacs
 TZ=CET
@@ -57,4 +74,4 @@ esac
 
 export LS_OPTIONS CVSROOT EDITOR TZ WWW_HOME LESSOPEN LESS RSYNC_RSH
 export CVS_RSH PILOTPORT PILOTRATE LANG DEBEMAIL CVSEDITOR ldlib
-export HOSTNAME DOMAINNAME
+export HOSTNAME DOMAINNAME PATH