From e0fa5ce4869fd8a5a08995863a58a4c5c416fe71 Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Wed, 22 Jul 2020 15:50:47 +0100 Subject: [PATCH] tmux: add P command to save history --- tmux.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/tmux.conf b/tmux.conf index 853bc3d..5e317dd 100644 --- a/tmux.conf +++ b/tmux.conf @@ -5,6 +5,7 @@ set -g base-index 1 bind C-l send-keys 'C-l' bind r source ~/.tmux.conf\; display "~/.tmux.conf sourced!" +bind-key P command-prompt -p 'save history to filename:' -I '~/tmux.history' 'capture-pane -S -32768 ; save-buffer %1 ; delete-buffer' # List of plugins set -g @plugin 'tmux-plugins/tpm'