Perfect. Since you're on macOS, Iβll give you a fully macOS-compatible, stable, version-safe tmux config that:
- β Works on older macOS tmux versions
- β
Avoids unsupported flags (
swap-pane -L) - β Uses macOS-compatible load display
- β Keeps everything fast and clean
- β Works even without Homebrew upgrade
- β TPM ready (optional)
Replace your current file completely with this:
##### βββββββββββββββββββββββββββββββββββββββββββββ
##### macOS-Compatible tmux Config
##### Stable | Fast | Vim-Friendly | Clean UI
##### βββββββββββββββββββββββββββββββββββββββββββββ
##### βββ PERFORMANCE ββββββββββββββββββββββββββββ
# Faster key response
set -sg escape-time 10
# Large scrollback
set -g history-limit 50000
# Enable focus events (safe on macOS)
set -g focus-events on
# Enable true color (macOS safe syntax)
set -g default-terminal "screen-256color"
set -as terminal-overrides ",*:Tc"
##### βββ PREFIX KEY βββββββββββββββββββββββββββββ
# Change prefix to Ctrl-a
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# Reload config
bind r source-file ~/.tmux.conf \; display-message "Config Reloaded β"
##### βββ PANE MANAGEMENT ββββββββββββββββββββββββ
# Split panes
bind | split-window -h
bind - split-window -v
# Vim-style navigation
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Resize panes
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# Compatible pane swapping (works on older macOS tmux)
bind -r C-h swap-pane -s '{left-of}'
bind -r C-l swap-pane -s '{right-of}'
##### βββ COPY MODE (VIM STYLE) βββββββββββββββββββ
setw -g mode-keys vi
bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi y send -X copy-selection-and-cancel
# macOS clipboard integration
set -g set-clipboard on
##### βββ MOUSE SUPPORT βββββββββββββββββββββββββββ
set -g mouse on
##### βββ WINDOW SETTINGS ββββββββββββββββββββββββ
set -g base-index 1
setw -g pane-base-index 1
set -g renumber-windows on
##### βββ STATUS BAR (macOS-safe load display) βββ
set -g status-position top
set -g status-interval 5
# Colors
set -g status-style bg=#1e1e2e,fg=#cdd6f4
set -g window-status-style fg=#6c7086,bg=#1e1e2e
set -g window-status-current-style fg=#1e1e2e,bg=#89b4fa,bold
# Left side
set -g status-left-length 40
set -g status-left "#[fg=#89b4fa] #S "
# Right side (macOS compatible uptime parsing)
set -g status-right-length 100
set -g status-right "#[fg=#a6e3a1]#(sysctl -n vm.loadavg | awk '{print $2,$3,$4}') #[fg=#fab387]%H:%M #[fg=#89dceb]#H "
# Pane borders
set -g pane-border-style fg=#6c7086
set -g pane-active-border-style fg=#89b4fa
##### βββ TPM (Optional Plugin Manager) ββββββββββ
# Comment these out if you don't want plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
run '~/.tmux/plugins/tpm/tpm'
##### βββββββββββββββββββββββββββββββββββββββββββββ
##### END
##### βββββββββββββββββββββββββββββββββββββββββββββComment out this entire section:
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
run '~/.tmux/plugins/tpm/tpm'Otherwise install TPM:
brew install tmux # optional upgrade
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpmThen inside tmux:
Ctrl-a + I
Inside tmux:
Ctrl-a r
If colors look wrong in iTerm2:
- Preferences β Profiles β Terminal
- Set
$TERMto:
xterm-256color
Two fully macOS-compatible, production-safe themes:
Both:
You can paste one directly into
~/.tmux.conf(replace your status section).π TOKYO NIGHT (Storm Variant)
Replace your STATUS BAR section with this:
π¨ Color Identity
Professional. Clean. Focused.
π± CATPPUCCIN (Mocha Variant)
Replace status section with:
π¨ Color Identity
Aesthetic. Calm. Modern.
π macOS Optimization Tip
For perfect colors:
iTerm2:
$TERMto:Apple Terminal:
True color works fine, but iTerm2 looks better with these palettes.