~/.tmux.conf
This colorized verison of my tmux configuration file is available for your convience.
The original file is available for download if you would like to use it.
# ----------------------------------------------------------------------
# file: ~/.tmux.conf
# author: moparx - https://moparx.com/configs
# date: 05/08/2013 - 18:12 EDT
# vim: set ai et fenc=utf-8 ft=conf nu si sts=0 sw=4 ts=8 tw=0 :
# ----------------------------------------------------------------------
# settings -------------------------------------------------------------
setw -g utf8 on
setw -g xterm-keys on
set -g default-terminal "screen-256color"
set-option -g set-titles on
set-option -g set-titles-string '[#S:#I #H] #W'
# auto-set window title
setw -g automatic-rename
setw -g aggressive-resize on
# vim keybinds
set-option -g status-keys vi
set-window-option -g mode-keys vi
# mouse
set -g mode-mouse on
setw -g mouse-select-window on
setw -g mouse-select-pane on
set -g history-limit 10000
# fixes shift-pageup/shift-pagedown
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
# faster key repetition
set -s escape-time 0
# activity alert
setw -g monitor-activity on
set -g visual-activity on
# binds ----------------------------------------------------------------
# reload configuration
#bind r source-file ~/.tmux.conf; display-message "tmux config reloaded."
# make it like screen
unbind C-b
set -g prefix C-a
bind C-a send-prefix
unbind A
bind A command-prompt "rename-window %%"
unbind l
bind C-a last-window
# splitting
unbind %
unbind '"'
bind | split-window -h
bind - split-window -v
# resizing
bind -r Up resize-pane -U 2
bind -r Down resize-pane -D 2
bind -r Left resize-pane -L 2
bind -r Right resize-pane -R 2
#window switching
bind -n C-down new-window
bind -n C-left prev
bind -n C-right next
#copy
bind-key c run "tmux save-buffer - | xclip -i"
#paste
bind-key v run "xclip -o | tmux load-buffer - ; tmux paste-buffer"
bind-key b list-buffers
# status bar -----------------------------------------------------------
set -g status-bg default
set -g status-fg colour8
set -g status-justify right
set -g status-left-length 40
set -g status-left '[#H] %a, %b %d %Y @ %I:%M%P'
set -g status-right ''
set -g pane-border-fg colour245
set -g pane-active-border-fg colour20
# Highlight active window
set-window-option -g window-status-current-bg colour8
set-window-option -g window-status-current-fg black
set -g window-status-activity-attr bold