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 7b15348 commit 34f9204
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stow/shell/.config/bash/exports
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ 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"

# Override the SSH Auth Socket for KeePass + KeeAgent compatibility with either of these; Cygwin usually works
#export SSH_AUTH_SOCK=~/.ssh/cygwin.socket
Expand Down
1 change: 1 addition & 0 deletions stow/shell/.config/bash_completion
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ generate_locally=(
"gitleaks:completion bash"
"kubectl:completion bash"
"node:--completion-bash"
"rg:--generate complete-bash"
"starship:completions bash"
"yq:shell-completion bash"
)
Expand Down
6 changes: 6 additions & 0 deletions stow/shell/.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
1 change: 1 addition & 0 deletions winget.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ foreach ($package in @(
"ahmetb.kubectx"
"ahmetb.kubens"
#"Apache.Maven"
"BurntSushi.ripgrep.MSVC"
"dandavison.delta"
"Docker.DockerDesktop"
#"Editorconfig-Checker.Editorconfig-Checker"
Expand Down

0 comments on commit 34f9204

Please sign in to comment.