Use mouse selection and pane/window switching.
Section: Core configuration
Enable mouse support
tmux
tmux
set -g mouse onExplanation
Makes tmux friendlier for new users and for terminal emulators with good mouse support.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Core configuration
Change prefix to Ctrl-a
Replace the default prefix with a screen-style prefix.
Renumber windows automatically
Keep window numbers compact after closing windows.