mirror of
https://github.com/lloeki/dotfiles.git
synced 2025-12-06 07:24:39 +01:00
Add fd support for fzf
This commit is contained in:
parent
cbad30a9e4
commit
eed5795eed
1 changed files with 8 additions and 3 deletions
11
shell/fzf
11
shell/fzf
|
|
@ -1,6 +1,11 @@
|
||||||
if command -v rg 2>&1 >/dev/null; then
|
if command -v fzf 2>&1 >/dev/null; then
|
||||||
export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow --glob "!{.git,node_modules}/*"'
|
if command -v fd 2>&1 >/dev/null; then
|
||||||
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
|
export FZF_DEFAULT_COMMAND='fd --no-ignore --hidden --follow --strip-cwd-prefix --exclude .git --exclude node_modules --exclude vendor'
|
||||||
|
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
|
||||||
|
elif command -v rg 2>&1 >/dev/null; then
|
||||||
|
export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow --glob "!{.git,node_modules,vendor}/*"'
|
||||||
|
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# vim: ft=bash
|
# vim: ft=bash
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue