Different behavior with and without config file? #2339
-
What am I doing wrong? (on macOS with zsh) $ alias rg $ cat $RIPGREP_CONFIG_PATH $ rg terminess $ rg terminess . $ RIPGREP_CONFIG_PATH= rg --glob='!.git' --hidden --smart-case terminess tvaughan/.Brewfile $ rg --version $ zsh --version |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
It's because your config file and your shell command are not equivalent. The config file is just a file. But your command is executed in the context of the shell that understands quoting and all sorts of things. So in your config file, you shouldn't be using quotes. Just
|
Beta Was this translation helpful? Give feedback.
-
That did the trick. Thanks @BurntSushi |
Beta Was this translation helpful? Give feedback.
It's because your config file and your shell command are not equivalent. The config file is just a file. But your command is executed in the context of the shell that understands quoting and all sorts of things. So in your config file, you shouldn't be using quotes. Just
--glob=!.git
will do. Or equivalently: