Files
nixos-conf/modules/home/shell/tmux.nix
T
2026-11-08 15:22:26 +01:00

50 lines
991 B
Nix

{ pkgs, ... }:
{
programs.tmux = {
enable = true;
prefix = "C-b";
terminal = "tmux-256color";
baseIndex = 0;
mouse = false;
keyMode = "vi";
plugins = with pkgs.tmuxPlugins; [
sensible
vim-tmux-navigator
resurrect
continuum
{
plugin = tmux-sessionx;
extraConfig = ''
set -g @sessionx-bind 'o'
'';
}
];
extraConfig = ''
set-option -ga terminal-overrides ",xterm-256color:Tc"
unbind r
bind r source-file ~/.tmux.conf
set-option -g status-style bg=default
set -g status-position bottom
set -g status-justify "absolute-centre"
set-option -g window-status-current-style fg=yellow
set-option -g window-status-style fg=brightwhite
set -wg automatic-rename on
set -g automatic-rename-format "#{pane_current_command}"
set -g @resurrect-capture-pane-contents "on"
set -g @continuum-restore "on"
'';
};
}