-
-
Notifications
You must be signed in to change notification settings - Fork 452
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
What is the correct way to set fish as the user's default shell? #779
Comments
The I'm going to close this issue as it is a duplicate of these 2 existing issues: #361 #328 |
I have the same issue, but how would |
This worked for me, I had to manually append |
Updating |
After digging around, I'm still not able to get the user's default shell to point to fish. Regardless of what I try, the following command always reports zsh:
Here are the things I have tried:
environment.loginShell = "${pkgs.fish}/bin/fish -l";
after addingpkgs.fish
toenvironment.shells
, following the example provided inmodules/examples/lnl.nix
.environment.loginShell = pkgs.fish;
as I have found user configs in GitHub that are using that, but no dice.programs.fish.enable = true;
as this seems to work forzsh
but not forfish
(see $SHELL is not set properly for fish #146).users.users.my-user.shell = pkgs.fish;
this seems to do nothing.programs.fish.enable = true;
in myhome-manager
section. Tried this just in case. Does not changeUserShell
. My understanding is thathome-manager
might not be able to set the user's shell as that requires root (??).At this point, I have to manually use
chsh -s /run/current-system/sw/bin/fish
. If that's what is required it would be nice to have that documented somewhere. None of thefish
related issues explicitly say that "that's the right way to do it", only that that's what people are using to force the change.Also, while digging around, it seems that
environments.loginShell
is defined in line 79 ofmodules/environment/default.nix
, but I could not find anywhere where it is actually used. Did I miss something?The text was updated successfully, but these errors were encountered: