These patches make resty default to using the XDG basedir spec by default. Host files (e,g. localhost:5984) are stored in $XDG_CONFIG_HOME/resty whilst cookies and the host file are stored in $XDG_DATA_HOME/resty. If XDG_CONFIG_HOME is undefined, the previous default of $HOME/.resty is used.
Use XDG Base Directory instead of a .directory
Host files are read from $XDG_CONFIG_HOME/resty. Cookies and host file
are stored in $XDG_DATA_HOME/resty/c and $XDG_DATA_HOME/resty/host,
respectively. One less .directory in $HOME.
Fallback to ~/.resty without XDG dirs
Be a bit kinder to people without XDG goodness
Awesome, thanks! I had a little bit of a dilemma thinking about people who have an XDB environment but already are using a .resty config dir, but I think an update to the README should be sufficient. I think people can manually copy the directories if they really want to.