From f9cb0dfa391b3ad2a6e41d93f8896b26329e73d0 Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Fri, 11 Nov 2011 22:46:46 +0100 Subject: [PATCH] Fixed the number of lines to look at in selector-cd-search. --- bash-selector.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}'!')" -- 2.39.5