Skip to content

Tmux

$ git clone git@github.com:WGZ-W/dotfiles.git

Installation

# Arch Linux
$ sudo pacman -S tmux

# Ubuntu
$ sudo apt install tmux

Basics

Attaching and detaching

  • C-b d
$ tmux attach
or
$ tmux attach -tmysession

$ tmux ls

Creating new windows

  • C-b c

Splitting the window

  • C-b %
  • C-b "

Changing the current window

  • C-b 0

Choosing sessions, windows and panes

C-b s C-b w

Using the mouse

:set -g mouse on

Configuring tmux

.tmux.conf

See also