summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'
+