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

Follow the XDG directory spec for templates directory #88

Open
jasonkarns opened this issue Nov 8, 2014 · 2 comments
Open

Follow the XDG directory spec for templates directory #88

jasonkarns opened this issue Nov 8, 2014 · 2 comments

Comments

@jasonkarns
Copy link

Can we follow the XDG specification for where to place configuration files? These templates would be best placed in $XDG_CONFIG_HOME/grunt-init/templates. Or similar; the $XDG_CONFIG_HOME being the crucial part.

Dropping a mass of configuration files in $HOME is antiquated. It causes a mass of files in one's home directory and inability to easily configure or move the config-home (to say, a network mount).

@jasonkarns
Copy link
Author

A partway solution that many projects have adopted to ease the transition, is to use the traditional $HOME directory unless the XDG directory exists; thereby making XDG support (at least at first) an opt-in only situation.

@sindresorhus
Copy link
Member

Agreed. Could use xdg-basedir.

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

2 participants