Re:Dotfile Madness
by jsmeaton on Sunday October 23, 2022 @11:24PM
(#33312662)
Asked out of ignorance, but do the envvars not allow one to easily co-locate data/config/cache by setting them all to the same value?
[ Parent
| on HN ]
Re:Dotfile Madness
by fiddlerwoaroof on Sunday October 23, 2022 @11:54PM
(#33312783)
Not in a way that would be useful here, I think: I prefer ~/.firefox/cache to ~/.cache/firefox and this requires the variables being unique per program (although, you could probably wrap each program with a script that sets the relevant environment variables to achieve this effect)
I was thinking along the lines of ~/.data/{prog} without requiring further subdirs. The config, data, and cache would all coexist within the same directory per program
Each of the data, config, and cache envvars would all be set to ~/.data in this setup (though “data” isn’t a name I’d use)