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

Respect XDG basedir spec #27

Merged
merged 13 commits into from
Sep 2, 2019
Merged

Respect XDG basedir spec #27

merged 13 commits into from
Sep 2, 2019

Conversation

jasonkarns
Copy link
Member

@jasonkarns jasonkarns commented Aug 26, 2019

closes #11

All default-packages files are combined, both from XDG config dirs, and nodenv-root. (This allows one to specify system-level default packages as well as user-specific ones.)

Files respected:

  1. NODENV_ROOT/default-packages
  2. XDG_CONFIG_HOME/nodenv/default-packages
  3. HOME/.config/nodenv/default-packages (if XDG_CONFIG_HOME is unset)
  4. {any-of: XDG_CONFIG_DIRS}/nodenv/default-packages
  5. /etc/xdg/nodenv/default-packages (if XDG_CONFIG_DIRS is unset)

This also adds a files subcommand to default-packages which will print all the default-packages files that are found and would be used (or error message if none found).

@jasonkarns jasonkarns merged commit 0d3159e into master Sep 2, 2019
@jasonkarns jasonkarns deleted the xdg-file branch September 2, 2019 15:13
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 this pull request may close these issues.

Support XDG_CONFIG_HOME
1 participant