Configure tmux

  • Install the latest tmux
  • Modify .tmux.conf.local

# — user customizations ——————————————————-
# this is the place to override or undo settings

# increase history size
set -g history-limit 10000

# start with mouse mode enabled
set -g mouse on

# force Vi mode
# really you should export VISUAL or EDITOR environment variable, see manual
#set -g status-keys vi
#set -g mode-keys vi

# replace C-b by C-a instead of using both prefixes
set -gu prefix2
unbind C-a
unbind C-b
set -g prefix C-a
bind C-a send-prefix

# move status line to top
# set -g status-position top

bind | split-window -h
bind – split-window -v


Minimal configuration:

# Make mouse useful in copy mode
setw -g mode-mouse on

# Allow mouse to select which pane to use
set -g mouse-select-pane on

# Allow xterm titles in terminal window, terminal scrolling with scrollbar, and setting overrides of C-Up, C-Down, C-Left, C-Right
set -g terminal-overrides “xterm*:XT:smcup@:rmcup@:kUP5=\eOA:kDN5=\eOB:kLFT5=\eOD:kRIT5=\eOC”

# Scroll History
set -g history-limit 30000

# Set ability to capture on start and restore on exit window data when running an application
setw -g alternate-screen on

# Lower escape timing from 500ms to 50ms for quicker response to scroll-buffer access.
set -s escape-time 50

unbind C-b
set -g prefix C-a
bind r source-file ~/.tmux.conf ; display-message “Config reloaded..”

bind | split-window -h
bind – split-window -v

set -g base-index 1
set -g pane-base-index 1

set -g @plugin ‘tmux-plugins/tpm’
set -g @plugin ‘tmux-plugins/tmux-sensible’
set -g @plugin ‘tmux-plugins/tmux-prefix-highlight’

set -g @plugin ‘tmux-plugins/tmux-resurrect’
set -g @plugin ‘tmux-plugins/tmux-continuum’
set -g @plugin ‘tmux-plugins/tmux-sidebar’
set -g @plugin ‘tmux-plugins/tmux-logging’
set -g @plugin ‘tmux-plugins/tmux-pain-control’
set -g @plugin ‘tmux-plugins/tmux-online-status’

run ‘~/.tmux/plugins/tpm/tpm’