Skip to content

Instantly share code, notes, and snippets.

@al-the-x
Forked from xentek/.tmux.conf
Created May 10, 2011 20:11
Show Gist options
  • Save al-the-x/965272 to your computer and use it in GitHub Desktop.
Save al-the-x/965272 to your computer and use it in GitHub Desktop.
custom .tmux.conf (renamed to .tmuxrc) file for your multiplexing pleasure
###
# Custom tmux configuration cobbled together from google and trial & error
# by Eric Marden (xentek.net), heavily modified by David Rogers (@al-the-x).
##
# set the command prefix to match gnuscreen (i.e. CTRL+a)
set-option -g prefix C-a
# use the NEW prefix key to "send-prefix" instead of the default
unbind-key C-b; bind-key C-a send-prefix
# bound to C-a by default
bind-key C-w last-window; bind-key w last-window
# to be more screen-friendly...
bind-key C-c new-window; bind-key c new-window
# utf8
set-window-option -g utf8 on
# statusbar background to black, foreground to white
set-option -g status-fg white
set-option -g status-bg black
# set the current window name to a nice bold yellow text
set-window-option -g window-status-current-attr bold
set-window-option -g window-status-current-fg yellow
# hostname is printed on the left, uptime and current load on the right
set-option -g status-left-length 40
set-option -g status-left "#H"
set-option -g status-right "#(uptime|cut -d "," -f 2-)"
# make the key bindings work like VIM
set-option -g status-keys vi
set-window-option -g mode-keys vi
# fix the titles
set -g set-titles on
set -g set-titles-string "#I:#W"
# be notified when there is activity in one of your windows
set-window-option -g monitor-activity on
# don't rename windows automatically
set-window-option -g automatic-rename off
# reload changes in tmux, handy
bind-key r source-file ~/.tmuxrc
# make the split panes more mnemonic
unbind-key '"'; unbind-key %
bind-key | split-window -h; bind-key C-| split-window -h
bind-key _ split-window -v; bind-key C-_ cplit-window -v
###
# Local tmux configuration, mostly so that the "prefix" / "send-prefix" bindings
# don't collide with the same on remote servers.
##
set-option -g prefix C-l
bind-key C-l send-prefix
unbind-key C-a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment