summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Beattie <mike@ethernal.org>2020-05-03 12:33:25 +1200
committerMike Beattie <mike@ethernal.org>2020-05-03 17:45:47 +1200
commitef2e19a7ac6fd5b1e8aa797427a6fe68c0b0201f (patch)
tree5eb0aa826b9e14b5cb58a48557a28c7f1def5db0
parent26465bcd3ee2aa55a184d74778b65703d94a603d (diff)
TMUX: Add scrollback saving
Signed-off-by: Mike Beattie <mike@ethernal.org>
-rw-r--r--.tmux.conf3
1 files changed, 3 insertions, 0 deletions
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 '<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'
+