Make every FZF command use ripgrep
Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
This commit is contained in:
parent
662d63a3c8
commit
239de02dc7
3 changed files with 15 additions and 4 deletions
|
@ -17,6 +17,13 @@ export GOPATH=~/.bin/go
|
|||
export FZF_DEFAULT_COMMAND='rg --files --hidden 2>/dev/null'
|
||||
export FZF_COMPLETION_TRIGGER='**'
|
||||
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
|
||||
export FZF_ALT_C_COMMAND='rg --hidden --files --null --sort path 2>/dev/null | xargs -0 dirname | uniq'
|
||||
_fzf_compgen_dir() {
|
||||
rg --hidden --files --null --sort path 2>/dev/null | xargs -0 dirname | uniq
|
||||
}
|
||||
_fzf_compgen_path() {
|
||||
rg --files --hidden 2>/dev/null
|
||||
}
|
||||
|
||||
# use lesspipe with less
|
||||
export LESSOPEN="|lesspipe.sh %s"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue