Enable mouse mode
misc
// what it does
`set mouse on` enables mouse support for the current session: you can click to select panes and windows, drag pane borders to resize, and scroll to enter copy-mode and page through the buffer. In `.tmux.conf` you'd normally write `set -g mouse on` to make it global. Added in tmux 2.1, this single option replaced the older separate mouse settings (`mode-mouse`, `mouse-select-pane`, `mouse-select-window`, `mouse-resize-pane`).
// tmux command
: set mouse on// gotcha
With mouse mode on, dragging to select text triggers tmux's own copy-mode selection instead of your terminal's — to get a normal terminal copy you have to hold Shift (on most terminals) to bypass tmux.