Change FZF command use fd when available

This commit is contained in:
Kevin Cotugno 2020-04-16 13:50:57 -07:00
parent 8a2bbb5c3b
commit 26e2e7256e

4
.zshrc
View File

@ -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