We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f006b39 commit 5547cd2Copy full SHA for 5547cd2
share/nixos-shell/nixos-shell.nix
@@ -67,7 +67,10 @@ in {
67
68
config = let
69
user = builtins.getEnv "USER";
70
- shell = builtins.baseNameOf (builtins.getEnv "SHELL");
+ shell' = builtins.baseNameOf (builtins.getEnv "SHELL");
71
+
72
+ # fish seems to do funky stuff: https://github.com/Mic92/nixos-shell/issues/42
73
+ shell = if shell' == "fish" then "bash" else shell';
74
in lib.mkMerge [
75
# Enable the module of the user's shell for some sensible defaults.
76
(lib.mkIf (options.programs ? ${shell}.enable && shell != "bash") {
0 commit comments