diff options
Diffstat (limited to '')
| -rw-r--r-- | tmux.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tmux.nix b/tmux.nix new file mode 100644 index 0000000..ec5ba81 --- /dev/null +++ b/tmux.nix @@ -0,0 +1,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" + ''; + }; +} |
