Created
March 28, 2014 17:59
-
-
Save toby/9838971 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# switch to ctl-a | |
set-option -g prefix C-a | |
unbind-key C-b | |
bind-key a send-prefix | |
# fix copy paste | |
# https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard/blob/master/README.md | |
set-option -g default-command "reattach-to-user-namespace -l bash" | |
# reload config key | |
bind-key r source-file ~/.tmux.conf \; display-message "Configuration reloaded" | |
# good colors | |
set-option -g default-terminal screen-256color | |
# use titles of stuff running in tmux | |
set-option -g set-titles on | |
set-option -g set-titles-string '#H #W' # use screen title | |
# window notifications | |
setw -g monitor-activity on | |
set -g visual-activity on | |
# for vim: ctl/alt disambig timeout | |
set-option -sg escape-time 1 | |
# act like vim | |
set-window-option -g mode-keys vi | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
bind-key -r C-h select-window -t :- | |
bind-key -r C-l select-window -t :+ | |
# panes | |
bind-key -r J resize-pane -D 5 | |
bind-key -r K resize-pane -U 5 | |
bind-key -r H resize-pane -L 5 | |
bind-key -r L resize-pane -R 5 | |
# Status bar has a dim gray background | |
set-option -g status-bg colour234 | |
set-option -g status-fg colour0 | |
# Left shows the session name, in blue | |
set-option -g status-left-bg default | |
set-option -g status-left-fg colour74 | |
# Right is some CPU stats, so terminal green | |
set-option -g status-right-bg default | |
set-option -g status-right-fg '#8BE77B' | |
# Windows are medium gray; current window is white | |
set-window-option -g window-status-fg colour244 | |
set-window-option -g window-status-current-fg '#ffffff' | |
set-window-option -g window-status-current-bg '#000000' | |
# Beeped windows get a blinding orange background | |
set-window-option -g window-status-bell-fg '#000000' | |
set-window-option -g window-status-bell-bg '#d78700' | |
set-window-option -g window-status-bell-attr none | |
# Trim window titles to a reasonable length | |
set-window-option -g window-status-format '#[fg=yellow]#F#I#[default] #32W ' | |
set-window-option -g window-status-current-format '#[fg=yellow] #I#[default] #32W ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment