summaryrefslogtreecommitdiffstats
path: root/.tmux.conf
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2018-07-07 07:08:09 +0200
committerTharre <tharre3@gmail.com>2018-07-07 07:40:55 +0200
commitd755a4a3d3c56dc516109a1ea4e70f05837a6cda (patch)
treed14976259635dd4ccac74c30f798433c413bdc58 /.tmux.conf
parent7c17e7f0933e49647e07e519292cf99da597e6c2 (diff)
downloaddotfiles-d755a4a3d3c56dc516109a1ea4e70f05837a6cda.tar.gz
dotfiles-d755a4a3d3c56dc516109a1ea4e70f05837a6cda.tar.xz
dotfiles-d755a4a3d3c56dc516109a1ea4e70f05837a6cda.zip
tmux: add P keybind for capturing history buffer
Diffstat (limited to '.tmux.conf')
-rw-r--r--.tmux.conf1
1 files changed, 1 insertions, 0 deletions
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"