tmux: add P command to save history

This commit is contained in:
Paul Walker
2020-07-22 15:50:47 +01:00
parent 43d6413dd2
commit e0fa5ce486

View File

@@ -5,6 +5,7 @@ set -g base-index 1
bind C-l send-keys 'C-l'
bind r source ~/.tmux.conf\; display "~/.tmux.conf sourced!"
bind-key P command-prompt -p 'save history to filename:' -I '~/tmux.history' 'capture-pane -S -32768 ; save-buffer %1 ; delete-buffer'
# List of plugins
set -g @plugin 'tmux-plugins/tpm'