fix(zellij): set default shell #393

Merged
jalil merged 1 commit from push-qssmkwtuutnt into main 2025-04-01 23:19:05 +02:00
2 changed files with 11 additions and 6 deletions
Showing only changes of commit 40968edd0d - Show all commits

View file

@ -125,7 +125,17 @@ in
};
};
};
zellij.enable = cfg.terminal == "alacritty"; # alacritty has no terminal multiplexer built-in
zellij = {
enable = cfg.terminal == "alacritty"; # alacritty has no terminal multiplexer built-in
# Set default shell
settings.default_shell =
if config.programs.fish.enable then
"fish"
else if config.programs.zsh.enable then
"zsh"
else
"bash";
};
# PDF reader
zathura.enable = true;
# Auto start sway

View file

@ -35,11 +35,6 @@ in
];
programs = {
# Launch fish if shell is interactive (from https://wiki.nixos.org/wiki/Fish)
bash.interactiveShellInit = # bash
''
if [[ "$(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm)" != "fish" && -z "$BASH_EXECUTION_STRING" ]]; then shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=""; exec ${pkgs.fish}/bin/fish "$LOGIN_OPTION"; fi
'';
# Default shell
fish.enable = true;
# Shell prompt