From ef2e19a7ac6fd5b1e8aa797427a6fe68c0b0201f Mon Sep 17 00:00:00 2001 From: Mike Beattie Date: Sun, 3 May 2020 12:33:25 +1200 Subject: TMUX: Add scrollback saving Signed-off-by: Mike Beattie --- .tmux.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.tmux.conf b/.tmux.conf index 9ace2c5..a026347 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -69,3 +69,6 @@ bind-key -r -T prefix S-Down resize-pane -D bind-key -r -T prefix S-Left resize-pane -L bind-key -r -T prefix S-Right resize-pane -R +# Bind ' H' to a macro to save the current scrollback to a file +bind-key -T prefix H command-prompt -p 'Save history to filename:' -I '~/tmux.history' 'capture-pane -eJS - ; save-buffer %1 ; delete-buffer' + -- cgit v1.2.3