diff --git a/roles/tmux.nix b/roles/tmux.nix index 9df280d..b1079d2 100644 --- a/roles/tmux.nix +++ b/roles/tmux.nix @@ -15,6 +15,10 @@ run-shell "/run/current-system/sw/bin/powerline-daemon -q" source /run/current-system/sw/share/tmux/powerline.conf + # Plugins + set -g @plugin 'tmux-plugins/tmux-resurrect' + set -g @plugin 'tmux-plugins/tmux-continuum' + # Bind home and end keys: bind-key -n Home send Escape "OH" bind-key -n End send Escape "OF" @@ -69,14 +73,17 @@ set-window-option -g window-status-format "#[fg=colour237,bg=colour239,noitalics]#[fg=colour223,bg=colour239] #I #[fg=colour223, bg=colour239] #W #[fg=colour239, bg=colour237, noitalics]" ''; - keyMode = "vi"; - shortcut = "a"; - terminal = "screen-256color"; + keyMode = "vi"; + newSession = true; + shortcut = "a"; + terminal = "screen-256color"; }; }; environment.systemPackages = with pkgs; [ python36Packages.powerline # Prompt enhancer + tmuxPlugins.resurrect + tmuxPlugins.continuum ]; }