Skip to content

Instantly share code, notes, and snippets.

@seanosulliv
Created June 27, 2011 09:50
Show Gist options
  • Save seanosulliv/1048598 to your computer and use it in GitHub Desktop.
Save seanosulliv/1048598 to your computer and use it in GitHub Desktop.
# Change prefix key to Ctrl+a
unbind C-b
set -g prefix C-a
# send the prefix to client inside window
bind-key C-b send-prefix
# Last active window
unbind l
bind C-a last-window
# Use Vi mode
setw -g mode-keys vi
set -g status-keys vi
# Make mouse useful in copy mode
setw -g mode-mouse on
# History
set -g history-limit 2000
# Terminal emulator window title
set -g set-titles on
set -g set-titles-string '#S:#I.#P #W'
set-window-option -g automatic-rename on
# Status Bar
set-option -g status-utf8 on
set-option -g status-justify right
set -g status-bg black
set -g status-fg cyan
set -g status-interval 5
set-option -g status-left-length 30
set -g status-left '#[fg=magenta]» #[fg=blue,bold]#T#[default]'
set -g status-right '#[fg=cyan]»» #[fg=magenta]%R#[default]'
# Notifying if other windows has activities
setw -g monitor-activity on
set -g visual-activity on
# Highlighting the active window in status bar
setw -g window-status-current-bg blue
# Clock
setw -g clock-mode-colour green
setw -g clock-mode-style 24
# instructs tmux to expect UTF-8 sequences
setw -g utf8 on
# tell tmux to use 256 colour terminal
#set -g default-terminal "screen-256color"
set -g default-terminal "xterm-256color"
# xterm-style function key sequences
setw -g xterm-keys on
# reload settings
bind-key R source-file ~/.tmux.conf
# choose a client to detach
bind-key D choose-client
# choose window/session
bind-key "'" choose-window
bind-key '"' choose-session
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment