From 6d0be69dfe9f4281d2f6435a5715f1c642664eba Mon Sep 17 00:00:00 2001 From: Anton Bobov Date: Sun, 15 Nov 2020 23:53:10 +0500 Subject: Zsh: fzf set to use fd (respect vcs ignores). --- files/.zsh/rc/S20_environment | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'files/.zsh/rc/S20_environment') diff --git a/files/.zsh/rc/S20_environment b/files/.zsh/rc/S20_environment index e3f1125..115ae1f 100644 --- a/files/.zsh/rc/S20_environment +++ b/files/.zsh/rc/S20_environment @@ -36,6 +36,12 @@ export LESS_TERMCAP_ue=$'\E[0m' export LESS_TERMCAP_us=$'\E[01;32m' export FZF_DEFAULT_OPTS="--color=light" +if [ $(command -v fdfind) ] ; then + export FZF_DEFAULT_COMMAND="fdfind --type file" +elif [ $(command -v fd) ] ; then + export FZF_DEFAULT_COMMAND="fd --type file" +fi +export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND" # vim: et ft=zsh : -- cgit v1.2.3