Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

97 lines (82 sloc) 2.684 kB
set -g default-terminal "screen-256color"
# fix for pbcopy and pbpaste
set -g default-command "reattach-to-user-namespace -l /bin/zsh"
bind C-c run "tmux save-buffer - | reattach-to-user-namespace pbcopy"
bind C-v run "tmux set-buffer $(reattach-to-user-namespace pbcopy); tmux paste-buffer"
# mouse modes
setw -g mode-mouse on
set -g mouse-select-pane on
set -g mouse-select-window on
set -g mouse-resize-pane on
# remap prefix to Control + a
set -g prefix C-a
unbind C-b
bind C-a send-prefix #type C-a twice to send it through to another application
# make tmux more responsive
set -sg escape-time 1
# make windows/panes 1-indexed instead of 0-indexed
set -g base-index 1
setw -g pane-base-index 1 #setw is short for set-window-option
# splitting windows into panes (Tmux is backwards from Vim)
bind | split-window -h # vim style vertical split
bind - split-window -v # vim style horizontal split
# Select panes with vim motion keys
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# select windows with vim motions
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
#resize panes with vim motions with SHIFT
bind H resize-pane -L 5
bind J resize-pane -D 5
bind K resize-pane -U 5
bind L resize-pane -R 5
# force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# quick pane cycling
unbind ^A
bind ^A select-pane -t :.+
# help by showing this conf
bind ? new-window -n help "less ~/.tmux.conf"
# Copy mode
# prefix [
# exit Enter
setw -g mode-keys vi
# search buffer with ?
# start selection like VIM instead of SPACE
bind -t vi-copy 'v' begin-selection
# VIM paste instead of Prefix ]
unbind p
bind p paste-buffer
# Vim Yank instead of Space
bind -t vi-copy 'y' copy-selection
# THEME
## status bar
set -g status-utf8 on
set -g status-bg black
set -g status-fg white
set -g status-interval 60
set -g status-left-length 30
set -g status-left '#[fg=green]Session:#S #[fg=yellow]W:#I #[fg=cyan]P:#P #[default]'
set -g status-right '#[fg=yellow]#(cut -d " " -f 1-3 /proc/loadavg)#[default] #[fg=blue]%H:%M#[default]'
set -g status-justify centre
setw -g monitor-activity on
set -g visual-activity on
##
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 green
set -g pane-border-bg black
set -g pane-active-border-fg white
set -g pane-active-border-bg yellow
set -g message-fg white
set -g message-bg black
set -g message-attr bright
Jump to Line
Something went wrong with that request. Please try again.