From 272beee4c7bcfdce422066e7c214a5fbe6f72681 Mon Sep 17 00:00:00 2001 From: Krzysztof Jaroma Date: Tue, 14 Mar 2023 20:25:59 +0100 Subject: [PATCH] Add save buffer feature to tmux config (#27) --- .tmux.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.tmux.conf b/.tmux.conf index fb7741be..d68a60bb 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -1,6 +1,7 @@ set exit-unattached off set exit-empty off set -g status-position top +set-option -g history-limit 10000 set -g default-terminal "screen-256color" set -g mouse on @@ -10,3 +11,5 @@ bind-key -n F1 select-window -t 1 bind-key -n F2 select-window -t 2 bind-key -n F3 select-window -t 3 bind-key -n F4 select-window -t 4 + +bind-key P command-prompt -p 'save history to filename:' -I '~/tmux.history' 'capture-pane -S -32768 ; save-buffer %1 ; delete-buffer' \ No newline at end of file