From 2c8a256b13dc354f5b7a4a6118e03da3018e1dd1 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 14 Mar 2014 17:53:23 +0900 Subject: [PATCH] Update README and install - Unset multi-select option with +m --- README.md | 6 ++++-- install | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e27d7fb0..9fd5b275 100644 --- a/README.md +++ b/README.md @@ -140,13 +140,15 @@ vimf() { # fd - cd to selected directory fd() { local dir - dir=$(find ${1:-*} -path '*/\.*' -prune -o -type d -print 2> /dev/null | fzf) && cd "$dir" + dir=$(find ${1:-*} -path '*/\.*' -prune \ + -o -type d -print 2> /dev/null | fzf +m) && + cd "$dir" } # fda - including hidden directories fda() { local dir - dir=$(find ${1:-.} -type d 2> /dev/null | fzf) && cd "$dir" + dir=$(find ${1:-.} -type d 2> /dev/null | fzf +m) && cd "$dir" } # fh - repeat history diff --git a/install b/install index 6578179d..b91d7ac0 100755 --- a/install +++ b/install @@ -112,7 +112,7 @@ __fsel() { __fcd() { local dir - dir=$(find ${1:-*} -path '*/\.*' -prune -o -type d -print 2> /dev/null | fzf) && printf 'cd %q' "$dir" + dir=$(find ${1:-*} -path '*/\.*' -prune -o -type d -print 2> /dev/null | fzf +m) && printf 'cd %q' "$dir" } if [ -z "$(set -o | grep '^vi.*on')" ]; then