micha / resty

Little command line REST client that you can use in pipelines (bash or zsh).
MIT License
2.65k stars 143 forks source link

Use XDG directories when defined #25

Closed namelessjon closed 13 years ago

namelessjon commented 13 years ago

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.

micha commented 13 years ago

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.