From: tfheen Date: Sat, 18 Oct 2003 14:52:41 +0000 (+0000) Subject: fix silly mistake where $NP was used instead of $PATH X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6afb7d122be120327c8c0d86df96cb0cd445bd92;p=dotfiles fix silly mistake where $NP was used instead of $PATH git-svn-id: file:///svn/tfheen/trunk/dotfiles@200 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf --- diff --git a/environment b/environment index 8145595..f41d534 100644 --- a/environment +++ b/environment @@ -18,20 +18,21 @@ is_debian () { } removepathelem () { + echo $PATH PATH=$(echo "$PATH" | sed -e "s,:*$1:,:,g") } setpathifdir () { if [ -d "$1" ]; then removepathelem "$1" - PATH="$1:$NP" + PATH="$1:$PATH" fi } appendpathifdir () { if [ -d "$1" ]; then removepathelem "$1" - PATH="$NP:$1" + PATH="$PATH:$1" fi }