Fixed the number of lines to look at in selector-cd-search.
authorFrancois Fleuret <francois@fleuret.org>
Fri, 11 Nov 2011 21:46:46 +0000 (22:46 +0100)
committerFrancois Fleuret <francois@fleuret.org>
Fri, 11 Nov 2011 21:46:46 +0000 (22:46 +0100)
bash-selector.sh

index 3a478f6..89a4a43 100755 (executable)
@@ -61,7 +61,7 @@ function selector-cd () {
 
 function selector-cd-search () {
     PATH_TEMP=$(mktemp /tmp/selector-cd-path.XXXXXX)
-    selector -u -t "cd" -l 10000 -d -i -c 7,2,0,3 -o ${PATH_TEMP} -q ${SELECTOR_CD_HISTORY}
+    selector -u -t "cd" -l 1000 -d -i -c 7,2,0,3 -o ${PATH_TEMP} -q ${SELECTOR_CD_HISTORY}
     NEW_PATH="$(cat ${PATH_TEMP} | sed -e 's!~!'${HOME}'!')"
     if [[ -s "${NEW_PATH}" ]]; then
         selector-cd "$(cat ${PATH_TEMP} | sed -e 's!^~!'${HOME}'!')"