Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

117 lines (89 sloc) 2.38 KB
setw -g mode-keys vi
set -g status-keys emacs
set -g default-command "reattach-to-user-namespace -l /bin/zsh"
set -g default-terminal "screen-256color"
set -w -g utf8 on
set -g status-utf8 on
set -g history-limit 50000
set -s escape-time 1
setw -g base-index 1 # start window numbers from 1
setw -g pane-base-index 1 # start pane numbers from 1
set-option -g status-keys emacs
setw -g mode-mouse on
set -g mouse-select-window on
set -g mouse-select-pane on
set -g mouse-resize-pane on
set-option -g renumber-windows on
setw -g monitor-activity on
set -g visual-activity on
unbind C-b
set -g prefix C-a
bind a send-prefix
# cycle through panes
unbind ^a
bind ^a select-pane -t :.+
unbind ^x
bind ^x kill-pane
# reload config
unbind r
bind r source-file ~/.tmux.conf\; display "Reloaded"
unbind ^W
bind ^W split-window -p 25 '$EDITOR $(cat ~/.current-project)' \; swap-pane -D
unbind ^T
bind ^T split-window -p 25
# horizontal and vertical splits
unbind |
bind | split-window -h -c "#{pane_current_path}"
unbind -
bind - split-window -v -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
# tile all windows
unbind =
bind = select-layout tiled
unbind Right
bind Right resize-pane -R 8
unbind Left
bind Left resize-pane -L 8
unbind Up
bind Up resize-pane -U 4
unbind Down
bind Down resize-pane -D 4
unbind h
bind h select-pane -L
unbind j
bind j select-pane -D
unbind k
bind k select-pane -U
unbind l
bind l select-pane -R
bind Escape copy-mode
bind -t vi-copy 'v' begin-selection
bind -t vi-copy 'y' copy-selection
# unbind p
# bind p paste-buffer
# unbind p
# bind p previous-window
bind y run "tmux save-buffer - | reattach-to-user-namespace pbcopy"
# bind p run "tmux paste-buffer"
unbind m
bind m new-window -d -n tmp \; swap-pane -s tmp.1 \; select-window -t tmp
unbind M
bind M last-window \; swap-pane -s tmp.1 \; kill-window -t tmp
set -g status-bg black
set -g status-fg white
set -g status-interval 1
set -g status-left ' '
set -g status-right '#[fg=yellow]%Y-%m-%d %H:%M#[default] '
setw -g window-status-current-bg yellow
setw -g window-status-current-fg 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 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.