From 16692b19092df4b916b6fc50abe9cf2f22211ce6 Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Fri, 13 Nov 2020 09:17:53 +0100 Subject: [PATCH] Add binding for saving tmux buffer Signed-off-by: Matej Focko --- playbooks/roles/shell/templates/tmux.conf.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/playbooks/roles/shell/templates/tmux.conf.j2 b/playbooks/roles/shell/templates/tmux.conf.j2 index 597e01e..bdd5df6 100644 --- a/playbooks/roles/shell/templates/tmux.conf.j2 +++ b/playbooks/roles/shell/templates/tmux.conf.j2 @@ -24,6 +24,7 @@ bind - resize-pane -D 2 bind-key r clear-history bind-key R source-file ~/.tmux.conf \; display "Reloaded config file ~/.tmux.conf" bind-key b set status +bind-key P command-prompt -p 'save history to filename:' -I '~/tmux.history' 'capture-pane -S - ; save-buffer %1 ; delete-buffer' source-file ~/.tmux/status.conf set -g status-position bottom