tmux: add a key binding to capture a pane's history
This commit is contained in:
parent
1ccba52719
commit
429c2f9b0a
1 changed files with 3 additions and 0 deletions
|
@ -7,6 +7,9 @@ bind C-space send-prefix
|
||||||
bind R source-file "$XDG_CONFIG_HOME/tmux/tmux.conf"\; display "RELOADED"
|
bind R source-file "$XDG_CONFIG_HOME/tmux/tmux.conf"\; display "RELOADED"
|
||||||
bind v copy-mode
|
bind v copy-mode
|
||||||
bind p paste-buffer
|
bind p paste-buffer
|
||||||
|
bind C command-prompt -p 'Save pane history:' \
|
||||||
|
-I '~/tmux.history' \
|
||||||
|
'capture-pane -S -32768 ; save-buffer %1 ; delete-buffer'
|
||||||
|
|
||||||
# Window/pane management (new windows/panes use the path in current pane)
|
# Window/pane management (new windows/panes use the path in current pane)
|
||||||
bind c new-window -c '#{pane_current_path}'
|
bind c new-window -c '#{pane_current_path}'
|
||||||
|
|
Loading…
Add table
Reference in a new issue