pinwheel: Save and restore tmux sessions with resurrect and continuum
This commit is contained in:
1 file changed
+19
-4
@@ -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}'
|
||||
|
||||
Reference in new issue
Block a user