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

Document setting XDG_DATA_HOME, XDG_DATA_DIRS and their uses #1527

Open
NotTheDr01ds opened this issue Aug 28, 2024 · 0 comments
Open

Document setting XDG_DATA_HOME, XDG_DATA_DIRS and their uses #1527

NotTheDr01ds opened this issue Aug 28, 2024 · 0 comments

Comments

@NotTheDr01ds
Copy link
Contributor

From Nushell #13704

This is related to, but probably separate from #1526.

We need to document how to set XDG_DATA_HOME, XDG_DATA_DIRS, and what they are used for. Looking at the source, I think:

  • XDG_DATA_HOME is only used to set $nu.data-dir ($env.XDG_DATA_HOME/nushell) on startup (all-platforms)

    • Related: $nu.data-dir used to:
      • Set the "final" vendor autoload path ($nu.data-dir/vendor/autoload` that overrides all others
      • Set a default completions directory ($nu.data-dir/completions) directory in $env.NU_LIB_DIRS - Side-note: Is this still useful now that we have autoloads?
  • On Unix platforms only - nushell/vendor/autoload is appended to each directory listed in XDG_DATA_DIRS to set nu.vendor-autoload-dirs

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

1 participant