Skip to content

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

Open
@mstruebing

Description

@mstruebing

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions