Browse Source

Use ripgrep instead of ag with fzf

coc
Schneider 6 years ago
parent
commit
d57cf7b5e0
Signed by: schneider GPG Key ID: 3F50B02A50039F3B
  1. 6
      zsh/custom.zsh

6
zsh/custom.zsh

@ -37,9 +37,9 @@ if hash gulp 2&> /dev/null; then
fi fi
# fzf settings # fzf settings
if hash ag 2&> /dev/null; then
# Use ag instead of find and exclude .gitignored files
export FZF_DEFAULT_COMMAND='ag -g ""'
if hash rg 2&> /dev/null; then
# Use ripgrep instead of find and exclude .gitignored files
export FZF_DEFAULT_COMMAND='rg --files'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND" export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
fi fi

Loading…
Cancel
Save