I really want to give #nushell a go as my login shell but I'm struggling with weird a error. Last time I tried I set up a scripts module dir .config/scripts with some nu scripts I want sourced on launch. I have in env.nu
@finestructure
If I'm understanding this correctly, nothing happens to NU_LIB_DIRS if something is already assigned. Seems to me you'd need to test for that, append a colon (or whatever nushell uses for a separator) if so, and just unconditionally append '~/.config/nushell'.
Ok, I've figured this out. The problem is that I had an unrelated scripts directory in the directory I was launching #nushell from. That seems to override my NU_LIB_DIRS setting and lead to the error.
I've now moved my scripts to .config/nushell/_scripts and now use _scripts * works fine.
Add comment