Skip to content

Instantly share code, notes, and snippets.

@prasmussen
Last active August 29, 2015 13:59
Show Gist options
  • Save prasmussen/10497516 to your computer and use it in GitHub Desktop.
Save prasmussen/10497516 to your computer and use it in GitHub Desktop.
tmux.conf
# Set ctrl-a as prefix
set -g prefix C-a
unbind C-b
# ctrl-a passthrough by sending ctrl-a 2 times
bind C-a send-prefix
# Less delay
set -sg escape-time 1
# Set window and pane indexes to start at 1 instead of 0
set -g base-index 1
setw -g pane-base-index 1
# Reload config with prefix-r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Misc key bindings
bind | split-window -h
bind - split-window -v
# Cycle through panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Cycle through windows
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# Resize panes
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
bind P paste-buffer
setw -g mode-keys vi
bind * copy-mode
bind -t vi-copy 'v' begin-selection
bind -t vi-copy 'C-v' rectangle-toggle
bind -t vi-copy 'y' copy-selection
bind -t vi-copy Escape cancel
# Colors
set -g pane-active-border-bg black
set -g utf8 on
setw -g utf8 on
set -g status-utf8 on
#######
set -g status-bg colour234
set -g window-status-activity-attr bold
set -g pane-border-fg colour245
set -g pane-active-border-fg colour39
set -g message-fg colour16
set -g message-bg colour221
set -g message-attr bold
set -g status-left-length 32
set -g status-right-length 150
set -g status-left "#[fg=colour16,bg=colour254,bold] #S #[fg=colour39,bg=colour234,nobold] "
set -g window-status-format "#[fg=black,bg=colour250] #I #W "
set -g window-status-current-format "#[fg=colour234,bg=colour39]#[fg=colour16,bg=colour39,noreverse,bold] #I #W #[fg=colour39,bg=colour234,nobold]"
set -g status-right '#[fg=colour16,bg=colour254,bold] #h '
set -g default-terminal "screen-256color"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment