tmux Fun
By default the prefix is Ctrl+B for tmux
How to save pane to file⌗
-
Use
prefix + : -
We need to puts those lines into a buffer by typing in
capture-pane -S -150| Replace-150with however many lines you’d like to save, or-for all lines. -
Hit return (enter)
-
Now we have to save the buffer to a file by doing the following
prefix + : -
Type in
save-buffer filename.txt -
Hit return (enter)
Synchronize Panes⌗
-
Use
prefix + : -
setw synchronize-panes onto enable synchronizing -
Hit return (enter)
-
Now everything you type will be in each pane
Disable Synchronizing Panes⌗
-
Use
prefix + : -
When you’re ready to disable type
setw synchronize-panes off -
Hit return (enter)
-
Everything will be back to normal
<- OTHERS ->