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
nu -i -c
does not source config.nu
#7442
Comments
Thanks for the report. However, this is by design which is why we give you |
Is it a bug then that |
No, because the intent of |
I see the intent, but I think it would be more intuitive if |
|
At least on 0.72.0, |
Agreed. It seemed like combining those two flags ignores loading the config files. I'm not sure if that's by design or not. I'll ask the core-team to chime in. |
I suspect this is unintentional and the combination of @justinlovinger can you provide a little context as to why you're trying to do this? That will help us prioritize the issue. |
I use this with a script to open terminal applications in a window, as if they were non-terminal applications, |
with 0.27 i was running my definitions with a command like as it is no longer loading the definitions, with the hint about -e i found this workaround |
for me it is useful when triggering my commands from outside the shell, like a scheduler job or from a gui front end |
oh my workaround is only working from a cmd shell... Error: |
nu -c xxx with the optional script parameter does not seem to work also.
|
Describe the bug
nu -i -c
does not sourceconfig.nu
.How to reproduce
alias test = echo "test"
toconfig.nu
.nu -i -c test
.Expected behavior
I expected
nu
to 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.nu
is not sourced either, but I did not test this as thoroughly.The text was updated successfully, but these errors were encountered: