From 39589cb6235dbb532571fdd1d927e606094377a2 Mon Sep 17 00:00:00 2001 From: Nulo Date: Tue, 7 Feb 2023 15:53:00 -0300 Subject: [PATCH] fish: activar alt+c --- .config/fish/conf.d/fzf.fish | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.config/fish/conf.d/fzf.fish b/.config/fish/conf.d/fzf.fish index 8392b28..385383e 100644 --- a/.config/fish/conf.d/fzf.fish +++ b/.config/fish/conf.d/fzf.fish @@ -1,6 +1,10 @@ -# if test -f /usr/share/fzf/key-bindings.fish -# source /usr/share/fzf/key-bindings.fish -# else -# source /usr/share/fzf/fzf-key-bindings.fish -# end -# fzf_key_bindings +if test -f /usr/share/fzf/key-bindings.fish + source /usr/share/fzf/key-bindings.fish +else + source /usr/share/fzf/fzf-key-bindings.fish +end +set FZF_ALT_C_COMMAND " + command find -L \$dir -mindepth 1 \\( -path \$dir'*/\\.*' \\) -prune \ + -o -type d -print 2> /dev/null | sed 's@^\./@@'" +fzf_key_bindings +bind \cr history-pager