From a629e5d02b7117f1f21b6d49c2281c73e8dfefb8 Mon Sep 17 00:00:00 2001 From: Craige McWhirter Date: Thu, 31 Dec 2020 12:07:53 +1000 Subject: [PATCH] Updated tmux plugin --- roles/tmux.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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 ]; }