tmux show-options -gUseful when debugging unexpected behavior from config files.
tmux commands and config snippets for diagnosing key bindings, options, environment issues, TERM problems, and server resets.
Inspect bindings, options, environment, and server state.
tmux show-options -gUseful when debugging unexpected behavior from config files.
tmux show-window-options -gHelps with issues like synchronization, mode keys, or layout-related settings.
tmux list-keysA fast way to verify what is actually bound.
tmux show-environmentHelpful when debugging PATH, SSH agent, or locale issues.
tmux infoUseful for low-level debugging.
Practical snippets for frequent tmux headaches.
set -g default-terminal "tmux-256color"Terminal capability mismatches are a common reason for broken colors or key behavior.
set -g update-environment "DISPLAY SSH_AUTH_SOCK SSH_AGENT_PID WINDOWID XAUTHORITY"Useful when SSH agent forwarding or GUI-related variables disappear after attaching.
tmux kill-serverNuclear option for clearing server-wide state; it ends all sessions.
sh -x -c "tmux source-file ~/.tmux.conf"Useful when a shell wrapper or plugin bootstrap script is involved.