Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nix run using $SHELL as default command #3477

Merged
merged 1 commit into from Apr 8, 2020

Conversation

Ninlives
Copy link
Contributor

@Ninlives Ninlives commented Apr 7, 2020

Since nix run just sets the PATH, I think it makes sense to use $SHELL as the default command for a more fluent workflow.

Additionally, the nix dev-shell uses option --rcfile, which is not compatible with all mainstream shells(I think zsh is one of the mainstream shell, is it?), and the rcfile usually contains bash-specific content, I think it is better to just use "bash" in dev-shell instead of "$SHELL". What's your opinion? Just discussion though, this is not part of this pr.

@edolstra edolstra merged commit 5449ff7 into NixOS:master Apr 8, 2020
@edolstra
Copy link
Member

edolstra commented Apr 8, 2020

Yes, nix dev-shell should use bash. Other shells could use nix print-dev-env to get the environment variables from the builder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants