3 ms·
Could ripgrep not simply add a check for the XDG environment variables and use those, if no rg environment variable is given? Of course if both are not availabl
by ijustlovemath 3y ago
Could ripgrep not simply add a check for the XDG environment variables and use those, if no rg environment variable is given? Of course if both are not available you would use the default.
- burntsushi 3y agoOf course. But now you've complicated how config files are found and it doesn't seem like an improvement big enough to justify it. Bottom line is that while ripgrep doesn't follow XDG, it also doesn't force you to litter your HOME directory. That's what most people care about in my experience. I would encourage you to search the ripgrep issue tracker for XDG. This has all been discussed.
- smaudet 3y agoThe issue is complexity - we could create some sort or 'standard tool' library that 'just works' on all platforms, but now building the tool and runtime bootstrapping the tool become more complex, and hence more likely to _break_. Really most people want it in their path and it just to work in as many scenarios as possible. Config almost shouldn't be the responsibility of the tool at all... (Options passed to the tool via env variables, perhaps)...