Skip to content

Tmux

List active sessions

tmux ls

Hot keys

Detach: Ctrl-b - d

New tab: Ctrl-b - c

Rename tab: Ctrl-b - ,

Basic config

cat << EOF >> ~/.tmux.conf
#
set -ga terminal-overrides ",*256col*:Tc"
set -g default-terminal "tmux-256color"

set -g base-index 1
setw -g pane-base-index 1 
#
unbind %
bind | split-window -h
unbind '"'
bind - split-window -v
#
unbind r
bind r source-file ~/.tmux.conf
#
bind -r j resize-pane -D 5
bind -r k resize-pane -U 5
bind -r l resize-pane -R 5
bind -r h resize-pane -L 5
#
bind -r m resize-pane -Z
#
set -g mouse on
#
EOF