Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 62b1b164ec
Fetching contributors…

Cannot retrieve contributors at this time

83 lines (70 sloc) 2.166 kb
# Use zsh
set-option -g default-shell /bin/zsh
# It's 2012
set -g default-terminal "screen-256color"
# Do not choose a title for me
setw -g automatic-rename off
# Use c-a as prefix
set -g prefix C-a
unbind C-b
bind C-a send-prefix
bind-key a send-key C-a
# Start numbering at 1
set -g base-index 1
setw -g pane-base-index 1
# use hjkl for moving
# and HJKL for resizing
setw -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 :+
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# shortcut for closing windows and panes
bind-key c kill-pane
bind-key q confirm-before kill-session
bind-key Q confirm-before kill-server
unbind o
bind o kill-pane -a
unbind c
bind w new-window
# Copy and pasting
bind -t vi-copy 'v' begin-selection
bind -t vi-copy 'y' copy-selection
bind C run "tmux save-buffer - | xclip -i -sel clipboard" \; run "tmux display \"Clipboard \(+\) filled with: $(tmux save-buffer - | dd ibs=1 obs=1 status=noxfer count=80 2> /dev/null)... \""
# use v and s for windows splits
unbind %
bind s split-window -v
bind v split-window -h
# Rather than constraining window size to the maximum size of any client
# connected to the *session*, constrain window size to the maximum size of any
# client connected to *that window*. Much more reasonable.
setw -g aggressive-resize on
# Coloring everything
set -g status-fg white
set -g status-bg black
setw -g window-status-fg cyan
setw -g window-status-bg default
setw -g window-status-attr dim
setw -g window-status-current-fg white
setw -g window-status-current-bg red
setw -g window-status-current-attr bright
set -g pane-border-fg white
set -g pane-border-bg black
set -g pane-active-border-fg green
set -g pane-active-border-bg black
set -g message-fg white
set -g message-bg black
set -g message-attr bright
# statusbar
set -g status-utf8 on
set -g status-interval 60
set -g status-left-length 40
set -g status-justify centre
set -g status-left "#[fg=green]#S"
set -g status-right "#[fg=cyan]%d %b %R"
Jump to Line
Something went wrong with that request. Please try again.