mirror of
https://github.com/lloeki/dotfiles.git
synced 2025-12-06 07:24:39 +01:00
11 lines
529 B
Bash
Executable file
11 lines
529 B
Bash
Executable file
if command -v fzf 2>&1 >/dev/null; then
|
|
if command -v fd 2>&1 >/dev/null; then
|
|
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
|
|
|
|
# vim: ft=bash
|