Skip to content

Instantly share code, notes, and snippets.

@matthewstory
Created November 21, 2011 04:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthewstory/1381596 to your computer and use it in GitHub Desktop.
Save matthewstory/1381596 to your computer and use it in GitHub Desktop.
goodbye screen, hello tmux
###########################################################
## .tmux.conf
##
## first pass at a .tmux.conf to make transition from
## gnu screen bearable
###########################################################
# screenesque prefix
set -g prefix C-a
bind C-a send-prefix
# use vi-style
set-window-option -g mode-keys vi # vi key
set-option -g status-keys vi
# use utf8 by default
set-window-option -g utf8 on # utf8 support
# turn off the mouse
set-window-option -g mode-mouse off # disable mouse
# change split bindings
unbind %
bind | split-window -h
unbind '"'
bind - split-window -v
# vi-style directional nav for panes
bind h select-pane -L
bind l select-pane -R
bind j select-pane -D
bind k select-pane -U
# auto-rename window to active proc
set-window-option -g automatic-rename on
#status-bar like screen
set -g status-bg cyan
set -g status-fg black
set -g status-right-length 60
set -g status-right-fg cyan
set -g status-right-bg black
set -g status-right '#[] [#S] %a %Y-%m-%d #[fg=yellow,bold]%H:%M#[default]#(uptime | cut -d : -f 4 | sed s/,//g) '
set -g status-left-length 0
set -g status-left '' # no status-left bar
# window status stuff, again like screen
set-window-option -g window-status-format '#I: #W#F'
# current window settings
set-window-option -g window-status-current-bg black
set-window-option -g window-status-current-fg yellow
set-window-option -g window-status-current-format '#[bold] #I: #W '
# color prefs for pane, matching status bar
set -g pane-active-border-bg black
set -g pane-active-border-fg yellow
set -g pane-border-bg black
set -g pane-border-fg cyan
# bell settings -- turn off sound
set -g visual-bell on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment