Skip to content

Instantly share code, notes, and snippets.

@rphillips
Created October 19, 2010 16:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rphillips/634524 to your computer and use it in GitHub Desktop.
Save rphillips/634524 to your computer and use it in GitHub Desktop.
.tmux.conf
# Set the correct $TERM
set-option -g default-terminal "screen-256color"
# Set the status bar
set-option -g status-bg colour235
set-option -g status-fg colour247
# The left portion of the status bar
set-option -g status-left "[#[fg=colour253]#S#[fg=default]]"
# The right portion of the status bar
set-option -g status-right "#22H #[fg=colour253]%H:%M"
# Set the message options
set-option -g message-bg colour215
set-option -g message-fg colour232
# Configuration of the current window
set-window-option -g window-status-current-fg colour46
# Configuration on alert
set-window-option -g window-status-alert-attr none
set-window-option -g window-status-alert-fg colour215
# Key Default Action
# h,| % Split window horizontally
# v,- " Split window vertically
# C-s o Go to next pane
# x x Kill the active pane
# q q Show pane numbers
# A-Arrow Key Resize the active pane
# C-Arrow Key Resize the active pane by one line or on character
#
unbind C-b
set -g prefix C-o
# Last active window
unbind l
bind C-o last-window
# Use Vi mode
setw -g mode-keys vi
# Make mouse useful in copy mode
setw -g mode-mouse on
# History
set -g history-limit 50000
set-option -g set-titles on
set-option -g set-titles-string '#W'
set-window-option -g automatic-rename on
# More straight forward key bindings for splitting
unbind %
bind | split-window -h
bind h split-window -h
unbind '"'
bind - split-window -v
bind v split-window -v
unbind A
bind A command-prompt "rename-window %%"
# Monitor activity
set-window-option -g monitor-activity on
set -g visual-activity on
# Set the status bar
set-option -g status on
set-option -g status-interval 5
set-option -g status-justify left
set-option -g status-utf8 on
# The left portion of the status bar
set-option -g status-left-length 10
# The right portion of the status bar
set-option -g status-right-length 40
# Load conditional configs
#if-shell 'test `tput Co` -eq 256' 'source-file ~/.tmux.d/256-colors'
#if-shell 'test `tput colors` -eq 256' 'source-file ~/.tmux.d/256-colors'
source-file ~/.tmux.d/256-colors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment