whattheshell::Shell already supports Nushell, therefore this PR only needs to modify shell/mod.rs.
Since Nushell works great on Windows and Linux, some conditional compilation was necessary. Also Nushell doesn't support eval, therefore goup env will simply return valid Toml and the script for goup env -p will parse that output and load the env vars accordingly.
This PR adds support for Nushell.
whattheshell::Shell
already supportsNushell
, therefore this PR only needs to modifyshell/mod.rs
.Since Nushell works great on Windows and Linux, some conditional compilation was necessary. Also Nushell doesn't support
eval
, thereforegoup env
will simply return valid Toml and the script forgoup env -p
will parse that output and load the env vars accordingly.