Closed edolstra closed 2 years ago
This implements DS-277 and DS-278.
Instead of nix develop, we now call nix print-dev-env --json to get the environment variables to set in the subcommand.
nix develop
nix print-dev-env --json
fsm shell now runs $SHELL, the user shell from /etc/passwd, or bash, in that order.
fsm shell
fsm run runs the specified command directly.
fsm run
We should detect the user's `$SHELL` variable and spawn it. A potential follow-up could look at the parent process and see if it is a known shell and prefer that.
Lovely!
fish:
fish
zsh:
zsh
nushell:
nushell
This implements DS-277 and DS-278.
Instead of
nix develop
, we now callnix print-dev-env --json
to get the environment variables to set in the subcommand.fsm shell
now runs $SHELL, the user shell from /etc/passwd, or bash, in that order.fsm run
runs the specified command directly.