pinwheel: Save and restore tmux sessions with resurrect and continuum

This commit is contained in:
Alexander Heldt committed 2026-11-03 13:46:56 +01:00
1 parent 64640e98aa
commit ee0cb23acc
1 file changed
+19 -4
+19 -4
View File
@@ -14,7 +14,25 @@ in
# Allow vi mode to be enabled instantly
escapeTime = 0;
plugins = [ pkgs.tmuxPlugins.sensible ];
plugins = [
pkgs.tmuxPlugins.sensible
{
plugin = pkgs.tmuxPlugins.resurrect;
extraConfig = ''
set -g @resurrect-capture-pane-contents 'on'
'';
}
{
plugin = pkgs.tmuxPlugins.continuum;
extraConfig = ''
# Remove date/time etc. on the right side
set -g status-right ""
set -g @continuum-restore 'on'
set -g @continuum-save-interval '10'
'';
}
];
extraConfig = ''
set -g renumber-windows on
@@ -33,9 +51,6 @@ in
set -g status-fg '#${colors.foreground}'
set -g status-bg '#${colors.status}'
# Remove date/time etc. on the right side
set -g status-right ""
# Status window colors
set -g window-status-current-style bg='#${colors.status}',fg='#${colors.cursor}'
set -g window-status-style bg='#${colors.status}',fg='#${dim}'