git://git.jankratochvil.net
/
nethome.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
we want to override any original directories, place local dirs first!
[nethome.git]
/
.bash_profile
diff --git
a/.bash_profile
b/.bash_profile
index
4f2ade9
..
63eb16d
100644
(file)
--- a/
.bash_profile
+++ b/
.bash_profile
@@
-4,7
+4,8
@@
function _bash_profile_addpath # variable,dirpathname
if [ -z "`eval "echo \\${$1}"`" ];then
eval "$1='$2'"
else
- eval "$1=\"\${$1}:$2\""
+ # we want to override any original directories, place dirpathname first!
+ eval "$1=\"$2:\${$1}\""
fi
export "$1"
}