why doesn't setting RIPGREP_CONFIG_PATH
cause ripgrep to use my config file?
#2890
-
Even though I have the > /bin/cat $RIPGREP_CONFIG_PATH
# Include hidden files and directories
--hidden
# Ignore .git directory
--glob=!.git/*
# Automatically determine case-sensitivity
--smart-case Every run with > rg --version
ripgrep 14.1.1
features:+pcre2
simd(compile):+NEON
simd(runtime):+NEON
PCRE2 10.43 is available (JIT is available) Any idea why that might be? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Can you show the full My guess is that you aren't setting the environment variable correctly. This varies depending on your shell environment. The ripgrep docs assume you know how to set environment variables in a way that is carried to subprocesses executed from your shell. For example:
Notice how
|
Beta Was this translation helpful? Give feedback.
Can you show the full
--debug
output?My guess is that you aren't setting the environment variable correctly. This varies depending on your shell environment. The ripgrep docs assume you know how to set environment variables in a way that is carried to subprocesses executed from your shell. For example:
Notice how
env
doesn't showFOOBAR
as defined even thoughecho $FOOBAR
does work. In order to make environment variables visible to subprocesses in a standard Unix shell, you need to export them: