X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=selector.git;a=blobdiff_plain;f=bash-selector.sh;h=e7fb46101478eea86399d3c60d6054738ca98c0c;hp=68a024bdf2168988c729a47fd2db427897e3edb5;hb=f8c68646bac4ea3989fb31cfc048248b0b946a6b;hpb=98ebced475975d1dd0cb733d11e2413e8bb54c54 diff --git a/bash-selector.sh b/bash-selector.sh index 68a024b..e7fb461 100755 --- a/bash-selector.sh +++ b/bash-selector.sh @@ -37,7 +37,7 @@ fi ###################################################################### function selector-history () { - selector --bash -j -u -c 7,4,0,3 -q <(history) + selector --bash -j -y -u -c 7,4,0,3 -q <(history) } ###################################################################### @@ -71,7 +71,7 @@ function selector-cd () { function selector-cd-search () { PATH_TEMP=$(mktemp /tmp/selector-cd-path.XXXXXX) - selector -j -u -t "cd" -l 1000 -d -i -c 7,2,0,3 -o ${PATH_TEMP} -q ${SELECTOR_CD_HISTORY} + selector -j -y -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}'!')"