summaryrefslogtreecommitdiff
path: root/shell/key-bindings.bash
diff options
context:
space:
mode:
authorAjeet D'Souza <98ajeet@gmail.com>2022-04-22 18:28:32 +0530
committerGitHub <noreply@github.com>2022-04-22 21:58:32 +0900
commit54841248e7a26ffe545220df2a444e11c96ec757 (patch)
treee32ec8e7285dbba05973def3d0ee7e0869f997a5 /shell/key-bindings.bash
parenta0b42e6538092dc6dea9f918a7a74c9408e44d4c (diff)
downloadfzf-54841248e7a26ffe545220df2a444e11c96ec757.tar.gz
[shell] ALT-C: Use builtin cd to avoid conflicts (#2799)
Diffstat (limited to 'shell/key-bindings.bash')
-rw-r--r--shell/key-bindings.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/key-bindings.bash b/shell/key-bindings.bash
index d213ae08..92b377d5 100644
--- a/shell/key-bindings.bash
+++ b/shell/key-bindings.bash
@@ -41,7 +41,7 @@ __fzf_cd__() {
local cmd dir
cmd="${FZF_ALT_C_COMMAND:-"command find -L . -mindepth 1 \\( -path '*/\\.*' -o -fstype 'sysfs' -o -fstype 'devfs' -o -fstype 'devtmpfs' -o -fstype 'proc' \\) -prune \
-o -type d -print 2> /dev/null | cut -b3-"}"
- dir=$(eval "$cmd" | FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} --reverse --bind=ctrl-z:ignore $FZF_DEFAULT_OPTS $FZF_ALT_C_OPTS" $(__fzfcmd) +m) && printf 'cd -- %q' "$dir"
+ dir=$(eval "$cmd" | FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} --reverse --bind=ctrl-z:ignore $FZF_DEFAULT_OPTS $FZF_ALT_C_OPTS" $(__fzfcmd) +m) && printf 'builtin cd -- %q' "$dir"
}
__fzf_history__() {