My tmux.conf

My tmux.conf

tmux.conf for version 2.x

Save this to your home dir as .tmux.conf

This will add tmux-resurect plugin. Clone bellow repo:
git clone https://github.com/tmux-plugins/tmux-resurrect ~/tmux-plugins/tmux-resurrect


###############################
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
unbind t
bind t select-layout tiled
bind e set-window-option synchronize-panes
bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded"
#
# Set scrollback buffer to 10000
set -g history-limit 10000

# Toggle mouse on with ^B m
bind m set -g mouse on \; display-message "Mouse: ON"

# Toggle mouse off with ^B M
bind M set -g mouse off \; display-message "Mouse: OFF"
#
# Start windows and panes index at 1, not 0.
set -g base-index 1
setw -g pane-base-index 1
############ Color Scheme
#
set -g pane-active-border-bg default
set -g pane-active-border-fg "colour220"
set -g pane-border-fg "colour239"

set -g message-fg "colour235"
set -g message-bg "colour220"

set -g status-justify left
set -g status-bg "colour236"
set -g status-fg "colour226"

setw -g clock-mode-colour "colour226"

setw -g status-left " #S "
setw -g status-left-fg "colour235"
setw -g status-left-bg "colour39"

set -g status-right-length "100"
# 24 hour time: `%H:%M`
# 12 hour time: `%-I:%M %p`
set -g status-right "#[bg=colour239,fg=colour220] %a, %B %-d, %H:%M #[bg=colour196,fg=colour15] #(whoami) #[fg=colour235,bg=colour39] #h "

# separator symbols: ┃ ║ │ ❮ ❯ ╲ ╱ left bar: ⎸ right bar: ⎹
setw -g window-status-separator "║"
setw -g window-status-bg "colour234"
setw -g window-status-fg "colour248"
setw -g window-status-format " #I: #W "
#
setw -g window-status-current-bg "colour234"
setw -g window-status-current-fg "colour220"
setw -g window-status-current-format " #I: #W "
#
setw -g window-status-bell-fg "colour9"
setw -g window-status-activity-fg "colour220"
#
# Add tmux-resurect plugin (prefix + Ctrl-s - save session; prefix + Ctrl-r - restore session)
run-shell ~/tmux-plugins/tmux-resurrect/resurrect.tmux

My tmux.conf for version 3.x and above

Save this to your home dir .tmux.conf

This will add tmux-resurect plugin. Clone bellow repo:
git clone https://github.com/tmux-plugins/tmux-resurrect ~/tmux-plugins/tmux-resurrect

###############################
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
unbind t
bind t select-layout tiled
bind e set-window-option synchronize-panes
bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded"
# Set scrollback buffer to 10000
set -g history-limit 10000

# Toggle mouse on with ^B m
bind m set -g mouse on \; display-message "Mouse: ON"

# Toggle mouse off with ^B M
bind M set -g mouse off \; display-message "Mouse: OFF"
#
#
# Start windows and panes index at 1, not 0.
set -g base-index 1
setw -g pane-base-index 1
############ Color Scheme
#
set -g pane-active-border-style bg="default"
set -g pane-active-border-style fg="colour220"
set -g pane-border-style fg="colour239"

set -g message-style fg="colour235"
set -g message-style bg="colour220"

set -g status-justify left
set -g status-style bg="colour236"
set -g status-style fg="colour226"

setw -g clock-mode-colour "colour226"

setw -g status-left " #S "
setw -g status-left-style fg="colour235"
setw -g status-left-style bg="colour39"

set -g status-right-length "100"
# 24 hour time: `%H:%M`
# 12 hour time: `%-I:%M %p`
set -g status-right "#[bg=colour239,fg=colour220] %a, %B %-d, %H:%M #[bg=colour196,fg=colour15] #(whoami) #[fg=colour235,bg=colour39] #h "

# separator symbols: ┃ ║ │ ❮ ❯ ╲ ╱ left bar: ⎸ right bar: ⎹
setw -g window-status-separator "║"
setw -g window-status-style bg="colour234"
setw -g window-status-style fg="colour248"
setw -g window-status-format " #I: #W "
#
setw -g window-status-current-style bg="colour234"
setw -g window-status-current-style fg="colour220"
setw -g window-status-current-format " #I: #W "
#
setw -g window-status-current-style bg="colour234"
setw -g window-status-current-style fg="colour220"
setw -g window-status-current-format " #I: #W "
#
setw -g window-status-bell-style fg="colour9"
setw -g window-status-activity-style fg="colour220"
#
# Add tmux-resurect plugin (prefix + Ctrl-s - save session; prefix + Ctrl-r - restore session)
run-shell ~/tmux-plugins/tmux-resurrect/resurrect.tmux


Mini nested config

for nested TMUX sessions where command key set to Ctrl+a
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
bind e set-window-option synchronize-panes
bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded"
bind m set -g mouse on \; display-message "Mouse: ON"
bind M set -g mouse off \; display-message "Mouse: OFF"
# Start windows and panes index at 1, not 0.
set -g base-index 1
setw -g pane-base-index 1