Skip to content

Instantly share code, notes, and snippets.

@gagarine
Created October 30, 2011 16:26
Show Gist options
  • Save gagarine/1326081 to your computer and use it in GitHub Desktop.
Save gagarine/1326081 to your computer and use it in GitHub Desktop.
# Last modified: 2011 Oct 30
# Author: Simon Perdrisat
#### Binds
# Prefix
unbind C-b
set-option -g prefix C-a
bind a send-prefix
# Last active window
unbind l
bind C-a last-window
# hsplit
unbind %
bind | split-window -h
# vsplit
unbind '"'
bind - split-window -v
# Copy mode
unbind [
unbind ]
bind Escape copy-mode
bind p paste-buffer
# Panes
bind up resize-pane -U 5
bind down resize-pane -D 5
bind left resize-pane -L 5
bind right resize-pane -R 5
bind tab next-layout
unbind C-o
bind r rotate-window
bind space select-pane -t:.+
# Monitor Activity
bind m set-window-option monitor-activity
# Commands
bind / command-prompt -p "man page: " "split-window 'exec man %%'"
bind v command-prompt -p "vim: " "split-window 'exec vim %%'"
bind s command-prompt -p "ssh: " "new-window -n %1 'ssh %1'"
#### END Binds
# Titles
set-window-option -g automatic-rename on
# Status Line
set-option -g status-utf8 on
set-option -g status-justify left
set -g status-right '#T %+'
## Note for #T add .bash_profile:
## export PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}: ${PWD/#$HOME/~}\007"'
# Options
set-option -g base-index 1
set-option -g display-time 8000
set-option -g mouse-select-pane on
set-option -g mouse-select-window on
set-option -g status-keys vi
set-option -g history-limit 8192
set-option -s escape-time 100
set-window-option -g mode-keys vi
set-window-option -g mode-mouse on
set-window-option -g monitor-activity off
set-window-option -g monitor-content off
set-window-option -g clock-mode-style 24
set-window-option -g utf8 on
### Colour (solarized)
# default statusbar colors
set-option -g status-bg colour235 #base02
set-option -g status-fg colour136 #yellow
set-option -g status-attr default
# default window title colors
set-window-option -g window-status-fg colour244
set-window-option -g window-status-bg default
#set-window-option -g window-status-attr dim
# active window title colors
set-window-option -g window-status-current-fg colour166 #orange
set-window-option -g window-status-current-bg default
#set-window-option -g window-status-current-attr bright
# pane border
set-option -g pane-border-fg colour235 #base02
set-option -g pane-active-border-fg colour240 #base01
# message text
set-option -g message-bg colour235 #base02
set-option -g message-fg colour166 #orange
# pane number display
set-option -g display-panes-active-colour colour33 #blue
set-option -g display-panes-colour colour166 #orange
# clock
set-window-option -g clock-mode-colour colour64 #green
### END Colour (solarized)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment