diff options
author | Mike Beattie <mike@ethernal.org> | 2020-05-03 12:33:25 +1200 |
---|---|---|
committer | Mike Beattie <mike@ethernal.org> | 2020-05-03 17:45:47 +1200 |
commit | ef2e19a7ac6fd5b1e8aa797427a6fe68c0b0201f (patch) | |
tree | 5eb0aa826b9e14b5cb58a48557a28c7f1def5db0 | |
parent | 26465bcd3ee2aa55a184d74778b65703d94a603d (diff) |
TMUX: Add scrollback saving
Signed-off-by: Mike Beattie <mike@ethernal.org>
-rw-r--r-- | .tmux.conf | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 '<prefix> 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' + |