From 143cc1742a5fa81965fd4a8d9677fd2c87167b74 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Wed, 20 Mar 2024 22:11:30 +0100 Subject: [PATCH] only not exec fish, when WANT_BASH is defined Signed-off-by: Harald Hoyer --- modules/nixos/user/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/nixos/user/default.nix b/modules/nixos/user/default.nix index 3d0d65f..d5609ed 100644 --- a/modules/nixos/user/default.nix +++ b/modules/nixos/user/default.nix @@ -73,8 +73,8 @@ in }".source = cfg.icon; }; - extraOptions.programs.bash.bashrcExtra = '' - [[ $PS1 ]] && exec env fish -l + extraOptions.programs.bash.initExtra = '' + [[ $WANT_BASH ]] || exec env fish -l ''; };