devenv icon indicating copy to clipboard operation
devenv copied to clipboard

Custom shell for scripts

Open CodeWitchBella opened this issue 2 years ago • 1 comments

I like writing my scripts in nushell, but there seems to be no way for scripts to emit custom shebang.

I mean, I could write my script exec like this: "${pkgs.nushell}/bin/nu ./scripts/script-name.nu $@";, but then I can't easily use custom packages without exposing them to the shell as well. It'd be great to be able to set scripts.*.shell or similar.

CodeWitchBella avatar Dec 20 '23 12:12 CodeWitchBella

Happy to accept a PR :)

domenkozar avatar Mar 07 '24 11:03 domenkozar

I've opened PR #1256 to hopefully provide a solution for this. Let me know what you think, @domenkozar @CodeWitchBella

I wasn't sure how to test this behaviour, but I have added some working examples I've tested locally.

rawkode avatar Jun 08 '24 10:06 rawkode