sites where that is added.
git-svn-id: file:///svn/tfheen/trunk/dotfiles@199
8da78d58-1cd3-0310-bee5-
d77bd1b3e8bf
return 1
}
+removepathelem () {
+ PATH=$(echo "$PATH" | sed -e "s,:*$1:,:,g")
+}
+
setpathifdir () {
if [ -d "$1" ]; then
- local NP=$(echo "$PATH" | sed -e "s,:*$1:,:,g")
+ removepathelem "$1"
PATH="$1:$NP"
fi
}
appendpathifdir () {
if [ -d "$1" ]; then
- local NP=$(echo "$PATH" | sed -e "s,:*$1:,:,g")
+ removepathelem "$1"
PATH="$NP:$1"
fi
}
;;
esac
+removepathelem "."
export LS_OPTIONS CVSROOT EDITOR TZ WWW_HOME LESSOPEN LESS RSYNC_RSH
export CVS_RSH PILOTPORT PILOTRATE LANG DEBEMAIL CVSEDITOR ldlib