# Debian / Ubuntu
-weight: 600;">sudo -weight: 500;">apt -weight: 500;">install tmux # RHEL / Fedora / Rocky
-weight: 600;">sudo -weight: 500;">dnf -weight: 500;">install tmux # macOS
-weight: 500;">brew -weight: 500;">install tmux
# Debian / Ubuntu
-weight: 600;">sudo -weight: 500;">apt -weight: 500;">install tmux # RHEL / Fedora / Rocky
-weight: 600;">sudo -weight: 500;">dnf -weight: 500;">install tmux # macOS
-weight: 500;">brew -weight: 500;">install tmux
# Debian / Ubuntu
-weight: 600;">sudo -weight: 500;">apt -weight: 500;">install tmux # RHEL / Fedora / Rocky
-weight: 600;">sudo -weight: 500;">dnf -weight: 500;">install tmux # macOS
-weight: 500;">brew -weight: 500;">install tmux
tmux new -s myproject
tmux new -s myproject
tmux new -s myproject
tmux attach -t myproject
tmux attach -t myproject
tmux attach -t myproject
tmux kill-session -t myproject
tmux kill-session -t myproject
tmux kill-session -t myproject
# add to ~/.bashrc or ~/.zshrc
if [ -z "$TMUX" ]; then tmux attach -t main 2>/dev/null || tmux new -s main
fi
# add to ~/.bashrc or ~/.zshrc
if [ -z "$TMUX" ]; then tmux attach -t main 2>/dev/null || tmux new -s main
fi
# add to ~/.bashrc or ~/.zshrc
if [ -z "$TMUX" ]; then tmux attach -t main 2>/dev/null || tmux new -s main
fi
# Start window and pane numbering at 1 instead of 0
set -g base-index 1
setw -g pane-base-index 1 # Enable mouse: click to focus panes, drag to resize
set -g mouse on # Increase scrollback
set -g history-limit 10000 # Status bar: show session name on the left, time on the right
set -g -weight: 500;">status-left "[#S] "
set -g -weight: 500;">status-right "%H:%M"
# Start window and pane numbering at 1 instead of 0
set -g base-index 1
setw -g pane-base-index 1 # Enable mouse: click to focus panes, drag to resize
set -g mouse on # Increase scrollback
set -g history-limit 10000 # Status bar: show session name on the left, time on the right
set -g -weight: 500;">status-left "[#S] "
set -g -weight: 500;">status-right "%H:%M"
# Start window and pane numbering at 1 instead of 0
set -g base-index 1
setw -g pane-base-index 1 # Enable mouse: click to focus panes, drag to resize
set -g mouse on # Increase scrollback
set -g history-limit 10000 # Status bar: show session name on the left, time on the right
set -g -weight: 500;">status-left "[#S] "
set -g -weight: 500;">status-right "%H:%M"
Ctrl+B :source-file ~/.tmux.conf
Ctrl+B :source-file ~/.tmux.conf
Ctrl+B :source-file ~/.tmux.conf - Session — a collection of windows. One session per project is the natural fit.
- Window — a full-screen view inside a session. Think of it like a browser tab.
- Pane — a split region within a window. One window can hold several panes.