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

Allow to specify config dir with env var #10746

Closed
bew opened this issue Oct 17, 2023 · 3 comments
Closed

Allow to specify config dir with env var #10746

bew opened this issue Oct 17, 2023 · 3 comments
Labels
configuration Issue related to nu's configuration delight this feature would delight users enhancement New feature or request needs-design this feature requires design needs-triage An issue that hasn't had any proper look
Milestone

Comments

@bew
Copy link

bew commented Oct 17, 2023

Related problem

On Windows (10), I want to put configuration of my tools on OneDrive and point the tools to it.

I've initially found #3883 which allowed to set NU_CONFIG_DIR env var to change this, but trying to use it now doesn't seem to work:
image

And since I can't find any mention to that env var in the docs I'm guessing it's not a bug, so I'm making a fresh feature request!

Describe the solution you'd like

A solution like what was done in #3883 through the environment variable NU_CONFIG_DIR which I could set at the account level.

This env var would change the base directory where the config, env and the plugins are searched for.

Describe alternatives you've considered

No response

Additional context and details

No response

@bew bew added enhancement New feature or request needs-triage An issue that hasn't had any proper look labels Oct 17, 2023
@amtoine amtoine added needs-design this feature requires design delight this feature would delight users configuration Issue related to nu's configuration labels Oct 17, 2023
@bew
Copy link
Author

bew commented Oct 17, 2023

If a Nu-specific env var isn't wanted, setting XDG_CONFIG_HOME even on Windows would be ok for me.

@bew
Copy link
Author

bew commented Jul 4, 2024

If a Nu-specific env var isn't wanted, setting XDG_CONFIG_HOME even on Windows would be ok for me.

Was implemented in v0.92.0 for #12103

@bew bew closed this as completed Jul 4, 2024
@hustcer hustcer added this to the v0.92.0 milestone Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
configuration Issue related to nu's configuration delight this feature would delight users enhancement New feature or request needs-design this feature requires design needs-triage An issue that hasn't had any proper look
Projects
None yet
Development

No branches or pull requests

3 participants