Update README and install

- Unset multi-select option with +m
This commit is contained in:
Junegunn Choi 2014-03-14 17:53:23 +09:00
parent f4c5aa03d7
commit 2c8a256b13
2 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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