dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 255a1d57f9cb2263bcfdf65327cc592dca8674b8
parent c26491854d75a9beb1a4618932a8707fd093b1aa
Author: Alex Balgavy <alexander.balgavy@spaceapplications.com>
Date:   Fri,  7 Mar 2025 17:27:27 +0100

shell: use rg for fzf

Diffstat:
Mshell/functions | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/shell/functions b/shell/functions @@ -87,7 +87,7 @@ fi if command -v fzf >/dev/null 2>&1; then { [ -f ~/.config/dark-theme ] && export BAT_THEME='1337'; } || export BAT_THEME='GitHub' export FZF_DEFAULT_OPTS="--preview-window right:100:hidden:wrap --bind '?:toggle-preview' --preview='(bat --style=numbers --theme=$BAT_THEME --color=always {} || cat {}) 2>/dev/null | head -500'" - export FZF_DEFAULT_COMMAND="ag -l -g \"\"" + export FZF_DEFAULT_COMMAND="rg -l -H \"\"" # script edit se() { local files @@ -161,6 +161,9 @@ if command -v fzf >/dev/null 2>&1; then } fi +if command -v rg >/dev/null 2>&1; then + alias rgv='rg --vimgrep' +fi # lf-reliant functions if command -v lf >/dev/null 2>&1; then lfcd() {