summaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-09-18 13:54:41 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-09-18 13:54:41 -0400
commit2b7fb15105e9fb691cde794ed3defb8a4ade4d34 (patch)
tree574607a918af1b6ca8603d8c4e696298ecebda89 /.local
parent982a896f20323a8770355067496be725e712f06d (diff)
.local/bin/config-path: prepend directories instead of appending them
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/config-path4
1 files changed, 2 insertions, 2 deletions
diff --git a/.local/bin/config-path b/.local/bin/config-path
index e06871f..6b9019c 100755
--- a/.local/bin/config-path
+++ b/.local/bin/config-path
@@ -31,12 +31,12 @@ for prefix in "${prefixes[@]}"; do
# PATH
dir="$prefix/bin"
if [[ -d "$dir" ]] && ! in_array "$dir" "${paths[@]}"; then
- paths+=("$dir")
+ paths=("$dir" "${paths[@]}")
fi
# RUBYLIB
dir="$prefix/lib"
if [[ -d "$dir" ]] && ! in_array "$dir" "${rubylibs[@]}"; then
- rubylibs+=("$dir")
+ rubylibs=("$dir" "${rubylibs[@]}")
fi
done