Skip to content

Commit

Permalink
tmux: add bind to copy session buffer to a file
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusvellone committed Mar 9, 2020
1 parent 17b2721 commit 9d0e302
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tmux/.tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ bind r \
source-file ~/.tmux.conf\;\
display "Config reloaded"

bind y \
command-prompt -p 'save history to filename:' -I '~/tmux.history' 'capture-pane -S -; save-buffer %1; delete-buffer'

bind P \
setw synchronize-panes\;\
display "Synchronized panes are #{?pane_synchronized,on,off}"
Expand Down

0 comments on commit 9d0e302

Please sign in to comment.