Tmux - heathdbrown/research GitHub Wiki
tmux
Notes on how tmux works and usage
tmux basics
Ctrl+b %- Split pane verticalCtrl+b "- Split pane horizontallyCtrl+b w- List panesCtrl+b z- Zoom into pane if splitCtrl+b x- Close paneCtrl+b PgUp- Scroll up in the paneCtrl+b PgDown- Scroll down in the paneCtrl+b ,- Modify Window title
tmux plugin manager (tpm)
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm- Add to the bottom of
~/.tmux.conf# List of plugins set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' # Other examples: # set -g @plugin 'github_username/plugin_name' # set -g @plugin 'github_username/plugin_name#branch' # set -g @plugin '[email protected]:user/plugin' # set -g @plugin '[email protected]:user/plugin' # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) run '~/.tmux/plugins/tpm/tpm' - Reload tmux
tmux source ~/.tmux.conf
tmux-logging plugin
- Add to ~/.tmux.conf
set -g @plugin 'tmux-plugins/tmux-logging' - Install
Ctrl+b I - Running Saving complete history of pane
Ctrl+b alt + shift + p
tmux-sidebar
- Add to ~/.tmux.conf
set -g @plugin 'tmux-plugins/tmux-sidebar - Install
Ctrl+b I - Use Ctrl+b Tab to activate/deativate
- Use Ctrl+b Backspace to move cursor
synchronize 'panes'
Ctrl+b :(enter command modeset-window-option synchronize-panes- Issue the same command to disable
pipe-pane for logging
Ctrl+b :pipe-pane -o 'cat >>~/output.#I-#P'
enable mouse support
Enable disable mouse support
Ctrl+b :(enter command mode)set -g mouse
Add to ~/.tmux.conf
set -g mouse
*** WARNING: enabling mouse support causes weird stuff to happen with copying and pasting if you are use to a terminal with right click paste. ***
Copy and paste in a split screen (Ctrl+b + %)
https://news.ycombinator.com/item?id=7758368
- Zoom in on the intended pane (
Ctrl+b z) - Once zoomed in select text and copy
- Zoom out of the pange (
Ctrl+b z)