From 2b7fb15105e9fb691cde794ed3defb8a4ade4d34 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 18 Sep 2013 13:54:41 -0400 Subject: .local/bin/config-path: prepend directories instead of appending them --- .local/bin/config-path | 4 ++-- 1 file 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 -- cgit v1.2.3-2-g168b