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