From 26e2e7256e18aa5dbb5867fbf18652bf60b3c22f Mon Sep 17 00:00:00 2001 From: Kevin Cotugno Date: Thu, 16 Apr 2020 13:50:57 -0700 Subject: [PATCH] Change FZF command use fd when available --- .zshrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.zshrc b/.zshrc index c37a1f2..f63b1aa 100644 --- a/.zshrc +++ b/.zshrc @@ -58,6 +58,10 @@ if [[ -f "$HOME/work.zsh" ]]; then source "$HOME/work.zsh" fi +if [[ $(command -v fzf) && $(command -v fd) ]]; then + export FZF_DEFAULT_COMMAND="fd --type f --hidden --no-ignore --follow --exclude .git" +fi + function weather() { local loc=$1 if [[ -z "$loc" ]]; then