My tmux configuration

  • Mouse wheel scrolling just works
  • Mouse clicking into & resizing panes works
  • Splitting panes have reasonable hotkeys ( | key for vertical, key for horizontal)
  • Colors work

Note: To copy lines, hold shift when selecting and you’ll get a normal terminal selection that you can Ctrl+Shift+C on.

#   Put this file in: ~/.tmux.conf
#
#   and
#
#   set ~/.bash_profile to contain "source ~/.bashrc" (to fix colors)
#
#  --- in ~/.bash_profile ---
#
#       source ~/.bashrc
#
# ---------------------------

# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %

# switch windows using Shift-arrow without prefix
bind -n S-Left previous-window
bind -n S-Right next-window

# Increase the scrollback buffer to a higher limit than the default 2000 lines
set -g history-limit 100000

# Enable mouse control (clickable windows, panes, resizable panes)
set -g mouse on

# Colors
set -g default-terminal "screen-256color"

Thanks to:

08/5/25