tmux: use fish directly on nixos, zsh on macos

This commit is contained in:
Zynh Ludwig 2024-08-20 17:33:18 -07:00
parent 52ab8df3e7
commit 44e592e9af

View file

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