From d755a4a3d3c56dc516109a1ea4e70f05837a6cda Mon Sep 17 00:00:00 2001 From: Tharre Date: Sat, 7 Jul 2018 07:08:09 +0200 Subject: tmux: add P keybind for capturing history buffer --- .tmux.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/.tmux.conf b/.tmux.conf index 26fdfa2..cd99875 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -14,5 +14,6 @@ set-option -g set-titles-string "#W" bind-key r source-file ~/.tmux.conf \; display "Config reloaded!" bind z run tmux-url-select +bind-key P command-prompt -p 'save history to filename:' -I '~/tmux.history' 'capture-pane -S - ; save-buffer %1 ; delete-buffer' if-shell "test -e ~/.tmux.conf.local" "source-file ~/.tmux.conf.local" -- cgit v1.2.3-70-g09d2