2023-11-22 15:33:16 -05:00
|
|
|
{pkgs, ...}: {
|
2023-10-18 14:54:24 -04:00
|
|
|
programs = {
|
2023-12-01 12:39:16 -05:00
|
|
|
# Make sure we have color support
|
|
|
|
bash.shellAliases.tmux = "tmux -2";
|
|
|
|
|
2023-10-18 14:54:24 -04:00
|
|
|
tmux = {
|
|
|
|
enable = true;
|
2023-10-23 17:36:22 -04:00
|
|
|
mouse = true;
|
2023-10-18 14:54:24 -04:00
|
|
|
keyMode = "vi";
|
2023-10-23 17:36:22 -04:00
|
|
|
terminal = "tmux-256color";
|
2023-10-18 14:54:24 -04:00
|
|
|
newSession = true;
|
|
|
|
historyLimit = 30000;
|
|
|
|
|
2023-12-01 12:39:16 -05:00
|
|
|
plugins = with pkgs.tmuxPlugins; [dracula];
|
2023-10-18 14:54:24 -04:00
|
|
|
|
2024-01-08 11:25:18 -05:00
|
|
|
extraConfig =
|
|
|
|
/*
|
|
|
|
bash
|
|
|
|
*/
|
|
|
|
''
|
|
|
|
bind-key -n Home send Escape "OH"
|
|
|
|
bind-key -n End send Escape "OF"
|
|
|
|
bind -T root WheelUpPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M"
|
|
|
|
bind -T root WheelDownPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; send-keys -M"
|
2023-10-23 17:36:22 -04:00
|
|
|
|
2024-01-08 11:25:18 -05:00
|
|
|
set -ga terminal-overrides ',xterm*:smcup@:rmcup@'
|
|
|
|
set -ga terminal-overrides ",*256col*:Tc"
|
|
|
|
'';
|
2023-10-18 14:54:24 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|