2/28/2012 - 11:22 AM

Tmux configuration

Tmux configuration

# use ` for prefix
set -g prefix `

# number windows from 1
set -g base-index 1

# highlight the active window
setw -g window-status-current-bg colour0

set -g set-titles on
set -g set-titles-string '#S: #I.#P #W'

# monitory for activity on other windows
setw -g monitor-activity off

# highlight the window with some activity
set -g visual-bell off
set -g bell-action any

# colors for status line and message
set -g status-fg colour7
set -g status-bg colour4
set -g message-fg colour7
set -g message-bg colour4

# vim style key bindings for splitting
unbind %
bind v split-window -h
unbind '"'
bind s split-window -v

# use mouse to select panes
set -g mouse-select-pane on

# `+r reloads the configuration, handy
bind r source-file ~/.tmux.conf

# user the terminal's way to scroll up and down
set -g terminal-overrides 'xterm*:smcup@:rmcup@'

# create, and, switch sessions, from within a session
bind-key M-c new-session
bind-key M-0 switch-client -t 0
bind-key M-1 switch-client -t 1
bind-key M-2 switch-client -t 2
bind-key M-3 switch-client -t 3
bind-key M-4 switch-client -t 4
bind-key M-5 switch-client -t 5
bind-key M-6 switch-client -t 6
bind-key M-7 switch-client -t 7
bind-key M-8 switch-client -t 8
bind-key M-9 switch-client -t 9