summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2014-02-07 18:41:05 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2014-02-07 18:41:05 +0900
commit426284c87e0e9ff0cdcf2cb7a4fc5bd708331ace (patch)
treec923fa5985191764b02f4eae2809316468f275cf
parent089691faaf9a470847dc4c06824b8f7b219da195 (diff)
Change CTRL-T binding to include directories
-rwxr-xr-xinstall2
1 files changed, 2 insertions, 0 deletions
diff --git a/install b/install
index a0b62e64..03e88043 100755
--- a/install
+++ b/install
@@ -102,6 +102,7 @@ bind '"\er": redraw-current-line'
__fsel() {
find * -path '*/\.*' -prune \
-o -type f -print \
+ -o -type d -print \
-o -type l -print 2> /dev/null | fzf -m | while read item; do
printf '%q ' "$item"
done
@@ -125,6 +126,7 @@ fzf-file-widget() {
FILES=($(
find * -path '*/\.*' -prune \
-o -type f -print \
+ -o -type d -print \
-o -type l -print 2> /dev/null | fzf -m))
unset IFS
FILES=$FILES:q