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

Use XDG_CONFIG_HOME for the .vuerc file #1325

Closed
tristan957 opened this issue May 18, 2018 · 3 comments · Fixed by #1326
Closed

Use XDG_CONFIG_HOME for the .vuerc file #1325

tristan957 opened this issue May 18, 2018 · 3 comments · Fixed by #1326

Comments

@tristan957
Copy link
Contributor

What problem does this feature solve?

Not cluttering my HOME directory

What does the proposed API look like?

Changing the default directory and using $HOME as a backup if XDG_CONFIG_HOME does not exist

@yyx990803
Copy link
Member

This is a niche use case but we'd welcome a PR.

@tristan957
Copy link
Contributor Author

tristan957 commented May 18, 2018

Awesome. Could you point me to where the file gets created?

@tristan957
Copy link
Contributor Author

Never mind found it.

yyx990803 pushed a commit that referenced this issue Jun 5, 2018
`vue-cli` now uses the following hierarchy for hosting its rc file:

* `VUE_CLI_CONFIG_PATH
* `XDG_CONFIG_HOME/vue/.vuerc`
* `HOME/.config/vue/.vuerc`
* `HOME/.vuerc`

closes #1325
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants