tmux: use fish directly on nixos, zsh on macos
This commit is contained in:
parent
52ab8df3e7
commit
44e592e9af
1 changed files with 2 additions and 1 deletions
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue