Tmux Cheat Sheet & Quick Reference

https://github.com/rothgar/awesome-tmux

man tmux

Theme

# Install the Catppuccin port for tmux
mkdir -p ~/.config/tmux/plugins/catppuccin
git clone -b v2.1.0 <https://github.com/catppuccin/tmux.git> ~/.config/tmux/plugins/catppuccin/tmux
echo "run ~/.config/tmux/plugins/catppuccin/tmux/catppuccin.tmux" >> ~/.tmux.conf

Basic

Sesson > Window > Pane

Prefix + b

tmux detach (如果本地 tmux 中又连接了服务器 tmux,就不能使用快捷键的方式了。这时可以使用该命令,挂起服务器端的 tmux session )

Session

Prefix + s, j/k or 0-9

Prefix + ( and Prefix + )

Prefix + L (last session)

➜  ~ tmux list-sessions
engine: 2 windows (created Sat Sep 13 14:50:55 2025)
fap: 2 windows (created Tue Sep  9 02:31:16 2025)

➜  ~ tmux kill-session -t fap

Windows

rename-window -> prefix , 
move window -> prefix .

Pane

tmux swap-pane -s 0 -t 2

C-b { prev