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 specification instead of falling back to $HOME directly #4

Open
mstruebing opened this issue May 20, 2021 · 0 comments · May be fixed by #5
Open

Use XDG specification instead of falling back to $HOME directly #4

mstruebing opened this issue May 20, 2021 · 0 comments · May be fixed by #5

Comments

@mstruebing
Copy link

History is currently saved to $HOME/.history.
However, there is a specification which should be payed attention to.

https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

I would say to save it to $XDG_CACHE_HOME/create-node-cli and only fallback if $XDG_CACHE_HOME is not set.
The fallback should be rather $HOME/.cache than $HOME/.history.

Where does history come from? Is that some specification I don't know about?

mstruebing added a commit to mstruebing/create-node-cli that referenced this issue May 22, 2021
@mstruebing mstruebing linked a pull request May 22, 2021 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant