From 673ef32dd02987a70f67b982b00e509ad0c5ee1b Mon Sep 17 00:00:00 2001 From: Tony Blyler Date: Fri, 16 Jun 2023 13:29:48 -0400 Subject: [PATCH] Add some ripgrep smart casing and a RIPGREP config --- chezmoi/dot_zshenv | 4 ++++ chezmoi/private_dot_config/ripgrep/ripgreprc | 1 + 2 files changed, 5 insertions(+) create mode 100644 chezmoi/private_dot_config/ripgrep/ripgreprc diff --git a/chezmoi/dot_zshenv b/chezmoi/dot_zshenv index bdcf402..d6aae35 100644 --- a/chezmoi/dot_zshenv +++ b/chezmoi/dot_zshenv @@ -9,6 +9,10 @@ for editor in nvim vim nano; do fi done +if command -v rg &> /dev/null; then + export RIPGREP_CONFIG_PATH="${HOME}/.config/ripgrep/ripgreprc" +fi + # if we're in vs code's terminal, set the editor to vs code if [ "${TERM_PROGRAM:-noop}" = "vscode" ]; then if [[ "$TERM_PROGRAM_VERSION" =~ -insider$ ]] && command -v code-insiders &> /dev/null; then diff --git a/chezmoi/private_dot_config/ripgrep/ripgreprc b/chezmoi/private_dot_config/ripgrep/ripgreprc new file mode 100644 index 0000000..e51ef46 --- /dev/null +++ b/chezmoi/private_dot_config/ripgrep/ripgreprc @@ -0,0 +1 @@ +--smart-case