@@ -33,7 +33,7 @@ initConfig () {
3333 continue
3434 fi
3535 if [ -n " $configline " ]; then
36- eval " ${configsectioname[i]} = '$configline '"
36+ eval " ${configsectioname} +=( '$configline ') "
3737 fi
3838 (( i++ ))
3939 done <<< " $(echo -e " $configlines " )"
@@ -44,28 +44,7 @@ initConfig
4444clear
4545thekeys=($( echo {a..p}) $( echo {r..z}) $( echo {1..9}) $( echo {A..Z}) )
4646declare -x keycounter=0
47- menuInit " Favorite locations"
48- submenuHead " Locations:"
49- if [ -n ${locations+x} ]; then
50- for j in " ${locations[@]} "
51- do
52- locationname=$( echo " $j " | cut -f1 -d' =' )
53- locationdir=$( echo " $j " | cut -f2 -d' =' )
54- menuItem " ${thekeys[$keycounter]} " " $locationname " " toDirAndTerminate $locationdir "
55- (( keycounter++ ))
56- done
57- fi
58- echo
59- submenuHead " Workspaces:"
60- if [ -n ${workspaces+x} ]; then
61- for j in " ${workspaces[@]} "
62- do
63- locationname=$( echo " $j " | cut -f1 -d' =' )
64- locationdir=$( echo " $j " | cut -f2 -d' =' )
65- menuItem " ${thekeys[$keycounter]} " " $locationname " " toDir $locationdir "
66- (( keycounter++ ))
67- done
68- fi
47+ menuInit " GIT locations"
6948echo
7049uncached=false
7150priorlocation=$( pwd) # remember actual location
8867eval cd " ${priorlocation// / \\ } " # return to previous location
8968# print out git location cache
9069submenuHead " GIT repos inside workspaces:"
70+ echo
9171for (( i = 0 ; i < ${# gitlocations[@]} ; i++ )) ; do
9272 arrIN=(${gitlocations[$i]} )
9373 IFSOLD=$IFS
@@ -97,14 +77,10 @@ for (( i = 0; i < ${#gitlocations[@]}; i++ )); do
9777 menuItem " ${arrIN[0]} " " ${arrIN[1]} " " ${arrIN[2]} ${arrIN[3]} "
9878done
9979if $uncached ; then coloredLog " NEW" " 1;42" ; else coloredLog " CACHED" " 1;42" ; fi
100- echo
10180submenuHead " Shortcuts"
10281menuItem X " Purge git dir cache" purgDirCache
10382echo
10483menuItem q " Quit" quit
105- echo
106- coloredLog " $( pwd) " " 1;44"
107-
10884choice
10985
11086unset locations workspaces
0 commit comments