diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2015-06-25 23:54:05 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2015-06-25 23:54:05 +0900 |
commit | 56100f0fa76f0e106ca54b7571f05d5837d61717 (patch) | |
tree | c62504268bf7f69414e358bea59d757baf621b73 /shell | |
parent | 5254ee2e2a78f165d61edca1af6ce55e0dbe0921 (diff) |
[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 '
Diffstat (limited to 'shell')
-rw-r--r-- | shell/key-bindings.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/key-bindings.bash b/shell/key-bindings.bash index d543428e..ee79cc35 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" } |