tmux: use fish directly on nixos, zsh on macos

sh-initrd-on-root
Zynh Ludwig 2024-08-20 17:33:18 -07:00
parent 52ab8df3e7
commit 44e592e9af
1 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@ let
cfg = config.snowhawk.tmux;
sessionizer = cfg.sessionizer;
macos = config.snowhawk.macos.enable;
in
{
options.snowhawk.tmux = {
@ -14,7 +15,7 @@ in
config = lib.mkIf cfg.enable {
programs.tmux = {
enable = true;
shell = getExe pkgs.zsh;
shell = getExe (if macos then pkgs.zsh else pkgs.fish);
mouse = true;
baseIndex = 1;
terminal = "screen-256color";