aboutsummaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authorAnton Bobov <abobov@gmail.com>2020-11-15 23:53:10 +0500
committerAnton Bobov <abobov@gmail.com>2020-11-15 23:55:02 +0500
commit6d0be69dfe9f4281d2f6435a5715f1c642664eba (patch)
treeb583811a469d217313092cc73c830b3e5f77899c /files
parent8fd200726fb79cb03148a247f306965cf567c7af (diff)
Zsh: fzf set to use fd (respect vcs ignores).
Diffstat (limited to 'files')
-rw-r--r--files/.zsh/rc/S20_environment6
1 files changed, 6 insertions, 0 deletions
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 :