DeterminateSystems / riff

Riff automatically provides external dependencies for Rust projects, with support for other languages coming soon.
https://riff.sh
Mozilla Public License 2.0
486 stars 13 forks source link

Use 'nix print-dev-env' instead of 'nix develop', respect $SHELL #70

Closed edolstra closed 2 years ago

edolstra commented 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.

fsm shell now runs $SHELL, the user shell from /etc/passwd, or bash, in that order.

fsm run runs the specified command directly.

linear[bot] commented 2 years ago
DS-278 Spawn the user's shell

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.

Hoverbear commented 2 years ago

Lovely!

fish: image

zsh: image

nushell: image