tmux: Add prefix-S command to capture pane contents to file
This commit is contained in:
parent
f316cad185
commit
ab92c97016
1 changed files with 2 additions and 0 deletions
|
@ -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 y send-keys -X copy-selection
|
||||||
bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
|
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
|
# foot as default terminal. This effects color rendering and typing on
|
||||||
# terminal.
|
# terminal.
|
||||||
set-option -g default-terminal "foot"
|
set-option -g default-terminal "foot"
|
||||||
|
|
Loading…
Reference in a new issue