Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

td should respect $XDG_CONFIG_HOME #163

Open
danielnorberg opened this issue May 18, 2016 · 0 comments
Open

td should respect $XDG_CONFIG_HOME #163

danielnorberg opened this issue May 18, 2016 · 0 comments

Comments

@danielnorberg
Copy link
Contributor

danielnorberg commented May 18, 2016

By default, put configuration in ~/.config/td/ instead of in ~/.td.

If the environment variable XDG_CONFIG_HOME is set, use $XDG_CONFIG_HOME/td/ for configuration.

This is part of the XDG Base Directory Specification which is a relatively new standard but has a lot of momentum. Even git implements it.

https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html#variables
http://unix.stackexchange.com/a/38871
https://github.com/git/git/blob/master/Documentation/git-config.txt#L241

@danielnorberg danielnorberg changed the title td toolbelt should respect $XDG_CONFIG_HOME td should respect $XDG_CONFIG_HOME May 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant