summaryrefslogtreecommitdiffstats
path: root/tmux.nix
blob: ec5ba8186fcd359fef8e72499b7fa30302d6f2c4 (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
{ config, pkgs, ... }:

{
	programs.tmux = {
    enable = true;
    terminal = "xterm-256color";
    historyLimit = 5000;
    extraConfig = ''
      # Split panes using | and -
      bind | split-window -h
      bind - split-window -v
      unbind '"'
      unbind %

      # Enable mouse support
      set -g mouse on

      # Set prefix to Ctrl-a
      unbind C-b
      set -g prefix C-a
      bind C-a send-prefix

      # Improve colors
      set -g default-terminal "tmux-256color"
      set -ag terminal-overrides ",xterm-256color:RGB"
    '';
  };
}