diff --git a/README.md b/README.md index e27d7fb005ed7609357a86274511afaf9c03bcfe..9fd5b27541e4e6949954945e72210e477ee4ac15 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 6578179d20ca7073bc239b7eb02295fa4fa1488b..b91d7ac041e19031a2923d1f545c879461de8bbe 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