summaryrefslogtreecommitdiffstats
path: root/tmux.nix
blob: 5a12e0488b581266e1fe43bdc3e3340f9d08a528 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
  config,
  pkgs,
  ...
}: {
  programs.tmux = {
    enable = true;
    shell = "${pkgs.fish}/bin/fish";
    terminal = "xterm-ghostty";
    historyLimit = 10000;
    baseIndex = 1;
    clock24 = true;
    customPaneNavigationAndResize = true;
    disableConfirmationPrompt = true;
    keyMode = "vi";
    mouse = true;
    newSession = true;
    prefix = "C-j";
    shortcut = "j";

    extraConfig = ''
      bind | split-window -h
      bind - split-window -v
    '';
  };

  home.packages = with pkgs; [
    tmux
  ];
}