projects
/
selector.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a019430
)
Fixed the number of lines to look at in selector-cd-search.
author
Francois Fleuret
<francois@fleuret.org>
Fri, 11 Nov 2011 21:46:46 +0000
(22:46 +0100)
committer
Francois Fleuret
<francois@fleuret.org>
Fri, 11 Nov 2011 21:46:46 +0000
(22:46 +0100)
bash-selector.sh
patch
|
blob
|
history
diff --git
a/bash-selector.sh
b/bash-selector.sh
index
3a478f6
..
89a4a43
100755
(executable)
--- 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 1000
0
-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}'!')"