From 56100f0fa76f0e106ca54b7571f05d5837d61717 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 25 Jun 2015 23:54:05 +0900 Subject: [PATCH] [bash] Use `command \find` for ALT-C ALT-C can fail with the following aliases as pointed out in #272 alias find='noglob find' alias command='command ' --- shell/key-bindings.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/key-bindings.bash b/shell/key-bindings.bash index d543428..ee79cc3 100644 --- a/shell/key-bindings.bash +++ b/shell/key-bindings.bash @@ -29,7 +29,7 @@ __fzf_select_tmux__() { __fzf_cd__() { local dir - dir=$(command find -L ${1:-.} \( -path '*/\.*' -o -fstype 'dev' -o -fstype 'proc' \) -prune \ + dir=$(command \find -L ${1:-.} \( -path '*/\.*' -o -fstype 'dev' -o -fstype 'proc' \) -prune \ -o -type d -print 2> /dev/null | sed 1d | cut -b3- | $(__fzfcmd) +m) && printf 'cd %q' "$dir" }