nushell/crates/nu-command/src/env
goldfish a3ea0c304a
Fix config {nu,env} to open $nu.{config,env}-file (#8792)
# Description

fixed #8755
Now, command `config {nu,env}` opens default file
`.config/nushell/{config,env}.nu`.
This behavior is inappropriate when `nu` is launched with option
`--config` or `--env-config`.
This PR changes the file that the command opens to
`$nu.{config,env}-file`.

# User-Facing Changes

`config {nu,env}` opens `$nu.{config,env}-file`.
2023-04-07 18:37:54 +02:00
..
config Fix config {nu,env} to open $nu.{config,env}-file (#8792) 2023-04-07 18:37:54 +02:00
export_env.rs Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
let_env.rs Switch let/let-env family to init with math expressions (#8545) 2023-03-23 09:14:10 +13:00
load_env.rs Document and critically review ShellError variants - Ep. 3 (#8340) 2023-03-06 18:33:09 +01:00
mod.rs Remove the 'env' command, as we have the variable (#8185) 2023-03-01 21:20:00 +13:00
source_env.rs Allow NU_LIBS_DIR and friends to be const (#8538) 2023-04-05 19:56:48 +03:00
with_env.rs Document and critically review ShellError variants - Ep. 3 (#8340) 2023-03-06 18:33:09 +01:00