Describe the bug
nu -i -c does not source config.nu.
How to reproduce
- Add
alias test = echo "test" to config.nu.
- Run
nu -i -c test.
Expected behavior
I expected nu to start an interactive shell with configuration from config.nu, run commands from -c, and exit after those commands finished.
Screenshots
No response
Configuration
| key |
value |
| version |
0.72.0 |
| branch |
|
| commit_hash |
|
| build_os |
linux-x86_64 |
| build_target |
x86_64-unknown-linux-gnu |
| rust_version |
rustc 1.64.0 |
| cargo_version |
cargo 1.64.0 |
| pkg_version |
0.72.0 |
| build_time |
1980-01-01 00:00:00 +00:00 |
| build_rust_channel |
release |
| features |
database, default, trash, which, zip |
| installed_plugins |
|
P.S. ignore build_time. This is NixOS.
Additional context
You can work around the bug by adding --config.
I believe env.nu is not sourced either, but I did not test this as thoroughly.
Describe the bug
nu -i -cdoes not sourceconfig.nu.How to reproduce
alias test = echo "test"toconfig.nu.nu -i -c test.Expected behavior
I expected
nuto start an interactive shell with configuration fromconfig.nu, run commands from-c, and exit after those commands finished.Screenshots
No response
Configuration
P.S. ignore
build_time. This is NixOS.Additional context
You can work around the bug by adding
--config.I believe
env.nuis not sourced either, but I did not test this as thoroughly.