tmux
Links
- http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man1/tmux.1?query=tmux&sec=1
- http://www.dayid.org/os/notes/tm.html
- https://learnxinyminutes.com/docs/tmux/
- https://gist.github.com/MohamedAlaa/2961058
- http://ryan.himmelwright.net/post/scripting-tmux-workspaces/
Copy Mode (without vi)
- Enter copy mode by pressing
CTRL + b
,[
. - Use the arrow keys to go to the position from where you want to start copying. Press
CTRL + SPACE
to start copying. - Use arrow keys to go to the end of text you want to copy. Press
ALT + w
orCTRL + w
to copy into Tmux buffer. - Press
CTRL + b
,]
to paste in a possibly different Tmux pane/window.
-
https://unix.stackexchange.com/questions/58763/copy-text-from-one-tmux-pane-to-another-using-vim
# copy: Ctrlb[ Ctrl - Space # Select Text and copy Alt - w # paste: Ctrlb]
Vi Mode
-
http://blog.sanctum.geek.nz/vi-mode-in-tmux/
set-window-option -g mode-keys vi
Command Mode
Ctrl+B :
get into command mode
list-keys
Panels
-
https://unix.stackexchange.com/questions/14300/moving-tmux-window-to-pane
Manipulate in Command mode:
Ctrl-b :
join-pane [-bdhv] [-l size | -p percentage] [-s src-pane] [-t dst-pane]
-
-s
source -
-t
destination pane -
-h
horizontal -
-v
vertical:break-pane
Panes ausseinander brechen% vertical split ” horizontal split
o swap panes q show pane numbers x kill pane
- break pane into window (e.g. to select text by mouse to copy)
- restore pane from window
⍽ space - toggle between layouts
q (Show pane numbers, when the numbers show up type the key to goto that pane) { (Move the current pane left) } (Move the current pane right) z toggle pane zoom
Color Stuff
Version Mismatch
$ tmux attach protocol version mismatch (client 7, server 6)
$ pgrep tmux 3429 $ /proc/3429/exe attach