Skip to content

Instantly share code, notes, and snippets.

@asrivascrealytee
Created February 20, 2019 13:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save asrivascrealytee/ea4e8bc61b7a964bd168ec339bf977f0 to your computer and use it in GitHub Desktop.
Save asrivascrealytee/ea4e8bc61b7a964bd168ec339bf977f0 to your computer and use it in GitHub Desktop.
ripgreprc
# Don't let ripgrep vomit really long lines to my terminal.
--max-columns=150
# Add my 'web' type.
--type-add
web:*.{html,css,js}*
# Because who cares about case!?
--smart-case
# Count the number of matches
--count
## make the output look like The Silver Searcher's output
## https://github.com/BurntSushi/ripgrep/blob/master/FAQ.md#silver-searcher-output
--colors=line:fg:yellow
--colors=line:style:bold
--colors=path:fg:green
--colors=path:style:bold
--colors=match:fg:black
--colors=match:bg:yellow
--colors=match:style:nobold
--hidden
# Show context by default
--context=3
# Always show line numbers for matches
--line-number
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment