From 9d0e302aa78583476bc36597056101de61074758 Mon Sep 17 00:00:00 2001 From: Matheus Peviani Vellone Date: Mon, 9 Mar 2020 16:49:36 -0300 Subject: [PATCH] tmux: add bind to copy session buffer to a file --- tmux/.tmux.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 844f640..a04c9f6 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -35,6 +35,9 @@ bind r \ source-file ~/.tmux.conf\;\ display "Config reloaded" +bind y \ + command-prompt -p 'save history to filename:' -I '~/tmux.history' 'capture-pane -S -; save-buffer %1; delete-buffer' + bind P \ setw synchronize-panes\;\ display "Synchronized panes are #{?pane_synchronized,on,off}"