Difference between revisions of "Linux: tmux"

From RHS Wiki
Jump to navigation Jump to search
Line 5: Line 5:
 
  [CTRL] + b + %
 
  [CTRL] + b + %
  
== Panels ([CTRL + B + ===
+
== Panels ([CTRL + B] + ===
 
  <nowiki>%  vertical split
 
  <nowiki>%  vertical split
 
"  horizontal split
 
"  horizontal split
 
 
o  swap panes
 
o  swap panes
 
q  show pane numbers
 
q  show pane numbers
Line 18: Line 17:
 
<prefix> { (Move the current pane left)
 
<prefix> { (Move the current pane left)
 
<prefix> } (Move the current pane right)
 
<prefix> } (Move the current pane right)
<prefix> z toggle pane zoom</nowiki>
+
<prefix> z toggle pane zoom
 +
[ Scroll
 +
Arrows to change panel</nowiki>
  
 
== Deattach ==
 
== Deattach ==

Revision as of 13:24, 3 September 2018

tmux CheatSheet

Start tmux

tmux

Split Horizontal

[CTRL] + b + %

Panels ([CTRL + B] + =

%  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
<prefix> q (Show pane numbers, when the numbers show up type the key to goto that pane)
<prefix> { (Move the current pane left)
<prefix> } (Move the current pane right)
<prefix> z toggle pane zoom
[ Scroll
Arrows to change panel

Deattach

[CTRL] + b + d

Kill

&  kill window

Change tmux commnad prefix key combination

At ~/.tmux.conf:

# remap prefix to Control + a
set -g prefix C-a
# bind 'C-a C-a' to type 'C-a'
bind C-a send-prefix
unbind C-b


Online Cheatsheets

https://gist.github.com/MohamedAlaa/2961058
https://gist.github.com/andreyvit/2921703