Skip to content

Commit d77fea8

Browse files
committed
ripgrep simplified configs
1 parent e6fad02 commit d77fea8

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

.bashrc

+6-6
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ test -x "$(command -v nvim)" && alias vim=nvim
6565
test -x "$(command -v broot)" && source $HOME/.config/broot/launcher/bash/br
6666

6767
# https://github.com/BurntSushi/ripgrep/issues/86#issuecomment-331718946
68-
rgl() { rg -i -p -M 500 "$@" | less -XFR; }
69-
rgf() { rg --files | rg -i -p -M 500 "$@" | less -XFR; }
70-
rglc() { rg -i -p -M 500 --type csharp "$@" | less -XFR; }
71-
rglt() { rg -i -p -M 500 --type ts "$@" | less -XFR; }
72-
rgltj() { rg -i -p -M 500 --type ts --type js "$@" | less -XFR; }
73-
rglweb() { rg -i -p -M 500 --type-add 'web:*.{htm,html,css,sass,less,js,jsx,ts,tsx}' --type web "$@" | less -XFR; }
68+
rgl() { rg --pretty "$@" | less -XFR; }
69+
rgf() { rg --files | rg --pretty "$@" | less -XFR; }
70+
rglc() { rg --pretty --type csharp "$@" | less -XFR; }
71+
rglt() { rg --pretty --type ts "$@" | less -XFR; }
72+
rgltj() { rg --pretty --type ts --type js "$@" | less -XFR; }
73+
rglweb() { rg --pretty --type web "$@" | less -XFR; }
7474

7575
batdiff() { git diff --name-only --diff-filter=d | xargs bat --diff; }
7676

.ripgreprc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
--ignore-case
2+
--max-columns 150
3+
--max-columns-preview
4+
5+
--type-add 'web:*.{htm,html,css,sass,less,js,jsx,ts,tsx}'

0 commit comments

Comments
 (0)