Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 701 Bytes

README.md

File metadata and controls

18 lines (11 loc) · 701 Bytes

XDGvars

Environment variables to make programs use xdg-ish folders.

The Big Idea

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.

Installation and use

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