Skip to content

Commit

Permalink
add ripgrep as CLI search tool
Browse files Browse the repository at this point in the history
  • Loading branch information
Okeanos committed Sep 2, 2024
1 parent b4007fa commit 6810949
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions Brewfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ brew "moreutils"
brew "netcat"
brew "node"
brew "pigz" # https://github.com/moby/moby/pull/35697
brew "ripgrep"
#brew "shellcheck"
#brew "shfmt"
brew "starship"
Expand Down
3 changes: 3 additions & 0 deletions stow/shell/dot-config/bash/exports
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,6 @@ export GOMODCACHE="${XDG_CACHE_HOME}/go/mod"

# Make wget XDG aware
export WGETRC="${XDG_CONFIG_HOME}/wgetrc"

# Make ripgrep XDF aware
export RIPGREP_CONFIG_PATH="${XDG_CONFIG_HOME}/ripgreprc"
6 changes: 6 additions & 0 deletions stow/shell/dot-config/ripgreprc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Don't let ripgrep vomit really long lines to my terminal, and show a preview.
--max-columns=150
--max-columns-preview

# Search hidden files / directories (e.g. dotfiles) by default
--hidden

0 comments on commit 6810949

Please sign in to comment.