Environment variables to make programs use xdg-ish folders.
There are too many programs that stick a .foo
folder in your home directory. It would be better if most of them followed the XDG structure. Until then, some allow you to set configuration and data directories with environment variables. This project provides xdgvars.sh
, which sets many of those for you.
To install, clone or download this repository to your $XDG_CONFIG_HOME
folder and source xdgvars.sh
in your ~/.bash_profile
with a snippet like this:
if [ -f $XDG_CONFIG_HOME/xdgvars/xdgvars.sh ]; then
source $XDG_CONFIG_HOME/xdgvars/xdgvars.sh
fi