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