4 ms·
Interesting, but why not just configure direnv to set appropriate env vars based on your current directory? That works for more than just git.
by __MatrixMan__ 3y ago
Interesting, but why not just configure direnv to set appropriate env vars based on your current directory? That works for more than just git.
- kelnos 3y agoI prefer the method used in the article. All the settings are neatly kept in a git configuration file, and I don't have to track down where direnv keeps them, or remember that I need a separate tool in order to make it work. Also this allows you to set git config options that don't have a corresponding environment variable.