From ab92c97016230ca6d8ecf2f2b86bc5ad1b45568e Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Tue, 8 Feb 2022 12:30:24 +0530 Subject: [PATCH] tmux: Add prefix-S command to capture pane contents to file --- tmux/.tmux.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 03c2af8..d1aca19 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -86,6 +86,8 @@ bind-key -T copy-mode-vi v send-keys -X begin-selection bind-key -T copy-mode-vi y send-keys -X copy-selection bind-key -T copy-mode-vi r send-keys -X rectangle-toggle +bind S command-prompt -p 'Save history to filename:' -I '/tmp/tmux.history' 'capture-pane -S - -E -; save-buffer %1 ; delete-buffer' + # foot as default terminal. This effects color rendering and typing on # terminal. set-option -g default-terminal "foot"