Difference between revisions of "Terminal Multiplexer"

From 6bit.ch wiki
Jump to navigation Jump to search
Line 27: Line 27:
<code>Ctrl-b c</code> create new window</br>
<code>Ctrl-b c</code> create new window</br>
<code>Ctrl-b 0..9</code> switch windows</br>
<code>Ctrl-b 0..9</code> switch windows</br>
== Remove Delay after Ctrl b ==
in ~/.tmux.conf: <code>set -g repeat-time 0</code></br>
reload config: <code>tmux source-file ~/.tmux.conf</code>

Revision as of 22:39, 14 October 2025

tmux

creating, killing, listing, renaming

tmux ls list sessions
tmux kill -t sessionname kill tmux session with name $sessionname
tmux new -s sessionname create tmux session with name $sessionname
tmux rename -t sessionname newname rename $sessionname to $newname
tmux attach -t sessionname attach to $sessionname
Ctrl-b d detach from session

navigating

Ctrl-b leftarrow move active window horizontally
Ctrl-b rightarrow move active window horizontally
Ctrl-b uparrow move active window vertically
Ctrl-b downarrow move active window vertically
Ctrl-b pgup/pgdown scroll up/down (window)
Ctrl-b [ + arrow keys scroll up/down (line)

resizing

Ctrl-b ALT + arrow_keys resize active window
Ctrl-b z toggle focus

spawning

Ctrl-b % spawn terminal horizontally
Ctrl-b " spawn terminal vertically

Ctrl-b c create new window
Ctrl-b 0..9 switch windows

Remove Delay after Ctrl b

in ~/.tmux.conf: set -g repeat-time 0
reload config: tmux source-file ~/.tmux.conf