Closed spikespaz closed 9 months ago
what's your initial value for $SHELL before running nix command?
As for my knowledge - $SHELL points to default shell of the user and the value is changed after user login for specific user e.g. if you have bash as default shell for your current user the $SHELL variable will still point to bash regardless of actually running shell right now.
I'm not sure I have enough to figure out if there's a bug here or what it might be. Maybe try strace nix-your-shell zsh nix -- develop
and see if you can spot where/if it launches bash
?
@meskill So you're saying that $SHELL
is the login shell, not the current shell?
@meskill So you're saying that
$SHELL
is the login shell, not the current shell?
Yes, for me it always points to bash shell although I'm using another shell in nix
Edit: I realized that my ZSH plugins seem to be working, even though
$SHELL
is a path tobash
. What's up with that?I still end up in a bash shell when running
nix develop
, but I can see that in my normal interactive ZSH terminal:And after running
nix develop
:I have attached my
.zshrc
, and the initialization command provided is at the bottom. I hope that this is enough to go by, and that the problem is trivial, because I don't have much other information to provide.