Skip to content

Latest commit

 

History

History
133 lines (75 loc) · 2.16 KB

tmux.md

File metadata and controls

133 lines (75 loc) · 2.16 KB

TMUX

Basic

<C-b> -> Main trigger sequence for tmux

r -> Reload conf file

:source ~/.tmux.conf

Sessions

tmux new -s <name>

tmux ls

# a / attach
tmux a -t <session name or number>

tmux rename-session -t <session name or number> <name>

# ses / session
tmux kill-ses -t <session name or number>
tmux kill-session -a # All except current
tmux kill-session -a -t mysession # All except my session

s -> Display all sessions with overview ; With left and right keys I can unfold session to see windows and panes inside

d -> Detach session

( -> Previous session

) -> Next session

$ -> Rename session

Tmux Resurect

With this plugin, use Prefix + Ctrl S to save a session layout and Prefix + Ctrl R to resurect it after the session has been closes

Those saves are persistant across reboots

:kill-session

Panes

Use arrows to browse panes

: setw synchronize-panes

% -> Create vertical pane ( right )

" -> Create horizontal pane ( bottom )

; -> Toggle last active pane

z -> Toggle zoom pane

x -> Close pane

{ -> Move current pane to previous position

} -> Move current pane to next position

q -> Show pane numbers

q + 1..x -> Switch to pane n°x

! -> Convert pane to window

MacOS : Meta + arrows -> Resize
Windows : Ctrl + arrows -> Resize

space -> Toggle between layouts

o -> Go to next pane

C + o -> Rotate up

M + o -> Rotate down

Windows

c -> New window

& -> Close current window

1...x -> Browse to window

, -> Rename current window

n -> Next window

p -> Previous window

w -> Browse windows through unflolded session view

: swap-window -s 2 -t 1 # Reorder window, swap window number 2(src) and 1(dst)

: swap-window -t -1 # Move current window to the left by one position

Copy Mode

Problems with access to MacOS clipboard system

[ -> Enter Copy mode

q -> Quit Copy mode

space -> Start selection

enter -> Copy selection

esc -> Clear selection

/ -> Search forward

? -> Search backwards

] -> Paste content where I want in tmux