From 664dd291eb8d87df7b9eec4282ee9d697789d4ec Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Wed, 6 Sep 2023 15:00:55 -0500 Subject: [PATCH] Restore NU_LIB_DIRS and NU_PLUGIN_DIRS defaults (#10252) # Description This PR reverts some changes to NU_LIB_DIRS and NU_PLUGIN_DIRS in the default_env.config file. Our practice is to have default configs that match if you were to run `nu -n`. I agree with this goal, but until someone adds NU_LIB_DIRS and NU_PLUGIN_DIRS, we should revert this change and not penalize users, breaking their scripts that run with `nu -c blah` when `blah` is located in the default_env's NU_LIB_DIRS. # User-Facing Changes # Tests + Formatting # After Submitting --- crates/nu-utils/src/sample_config/default_env.nu | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/nu-utils/src/sample_config/default_env.nu b/crates/nu-utils/src/sample_config/default_env.nu index c5c5578aab..f3e1e392c9 100644 --- a/crates/nu-utils/src/sample_config/default_env.nu +++ b/crates/nu-utils/src/sample_config/default_env.nu @@ -63,12 +63,14 @@ $env.ENV_CONVERSIONS = { # Directories to search for scripts when calling source or use $env.NU_LIB_DIRS = [ - # ($nu.default-config-dir | path join 'scripts') # add /scripts + # FIXME: This default is not implemented in rust code as of 2023-09-06. + ($nu.default-config-dir | path join 'scripts') # add /scripts ] # Directories to search for plugin binaries when calling register $env.NU_PLUGIN_DIRS = [ - # ($nu.default-config-dir | path join 'plugins') # add /plugins + # FIXME: This default is not implemented in rust code as of 2023-09-06. + ($nu.default-config-dir | path join 'plugins') # add /plugins ] # To add entries to PATH (on Windows you might use Path), you can use the following pattern: