tmux: Add prefix-S command to capture pane contents to file

This commit is contained in:
Sanchayan Maity 2022-02-08 12:30:24 +05:30
parent f316cad185
commit ab92c97016
1 changed files with 2 additions and 0 deletions

View File

@ -86,6 +86,8 @@ bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection
bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
bind S command-prompt -p 'Save history to filename:' -I '/tmp/tmux.history' 'capture-pane -S - -E -; save-buffer %1 ; delete-buffer'
# foot as default terminal. This effects color rendering and typing on
# terminal.
set-option -g default-terminal "foot"