From: Francois Fleuret Date: Fri, 11 Nov 2011 21:46:46 +0000 (+0100) Subject: Fixed the number of lines to look at in selector-cd-search. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=f9cb0dfa391b3ad2a6e41d93f8896b26329e73d0;p=selector.git Fixed the number of lines to look at in selector-cd-search. --- diff --git a/bash-selector.sh b/bash-selector.sh index 3a478f6..89a4a43 100755 --- a/bash-selector.sh +++ b/bash-selector.sh @@ -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}'!')"