Change FZF command use fd when available
This commit is contained in:
parent
8a2bbb5c3b
commit
26e2e7256e
4
.zshrc
4
.zshrc
@ -58,6 +58,10 @@ if [[ -f "$HOME/work.zsh" ]]; then
|
|||||||
source "$HOME/work.zsh"
|
source "$HOME/work.zsh"
|
||||||
fi
|
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() {
|
function weather() {
|
||||||
local loc=$1
|
local loc=$1
|
||||||
if [[ -z "$loc" ]]; then
|
if [[ -z "$loc" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user