Skip to content

Custom Prefix: Ctrl + Space
Config file: ~/.config/tmux/tmux.conf

Terminal window
tmux # Start new session
tmux new -s name # Named session
tmux attach -t name # Attach
tmux ls # List sessions
tmux kill-session -t name
ActionShortcutNotes
New window (tab)Prefix + c
Next windowPrefix + n
Previous windowPrefix + p
Switch windowPrefix + 0-9
Rename windowPrefix + ,
Kill windowPrefix + &Confirm y
Split verticalPrefix + %
Split horizontalPrefix + “
Switch panesPrefix + Arrow
Zoom panePrefix + zToggle
Kill panePrefix + xConfirm y
Detach sessionPrefix + d
Reload configPrefix + r
ActionCommand / Shortcut
New window in current folderPrefix + c (with config)
Duplicate current tab (same folder)Prefix + C (recommended binding)
One-time duplicatePrefix + : → new-window -c ”#{pane_current_path}“
New session in specific foldertmux new -s name -c /path/to/folder
Split keeping current folderPrefix + | or Prefix + - (with config)
Section titled “Recommended tmux.conf (add to ~/.config/tmux/tmux.conf)”
set -g prefix C-Space
unbind C-b
bind C-Space send-prefix
set -g mouse on
set -g base-index 1
setw -g pane-base-index 1
set -g renumber-windows on
set -s escape-time 0
set -g history-limit 50000
# Smart directory behavior
bind c new-window -c "#{pane_current_path}"
bind C new-window -c "#{pane_current_path}" # Duplicate current window
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
# Reload config
bind r source-file ~/.config/tmux/tmux.conf \; display "Config reloaded!"

Bash

alias tmux="tmux -f ~/.config/tmux/tmux.conf"

Tip: After editing config, reload with Prefix + r or restart tmux.