Skip to content

Instantly share code, notes, and snippets.

@EvergreenTheTree
Last active August 29, 2015 14:19
Show Gist options
  • Save EvergreenTheTree/3639f22d2b2f0b546f77 to your computer and use it in GitHub Desktop.
Save EvergreenTheTree/3639f22d2b2f0b546f77 to your computer and use it in GitHub Desktop.
My tmux configuration
#
## Evergreen's tmux config file
#
# General Settings ------------------------------------------------------- {{{
# 256 colors please
set -g default-terminal "screen-256color"
# Use vim keys for copy mode
setw -g mode-keys vi
# Less stretching for window movement
set -g base-index 1
setw -g pane-base-index 1
# Take your time
set -sg repeat-time 600
set -sg escape-time 0
# }}}
# Bindings --------------------------------------------------------------- {{{
# Easy config sourcing
bind R source-file ~/.tmux.conf \; display-message "Config reloaded..."
# use c-a as prefix
set -g prefix C-n
bind C-n send-prefix
unbind C-b
# easy-to-remember split pane commands
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# Moar vim-like copy mode bindings
bind ` copy-mode
unbind [
unbind p
bind p paste-buffer
bind -t vi-copy H start-of-line
bind -t vi-copy L end-of-line
bind -t vi-copy v begin-selection
bind -t vi-copy y copy-pipe "xclip -selection clipboard"
bind -t vi-copy Escape cancel
bind y run "tmux save-buffer - | xclip -selection clipboard"
# resize panes with vim movement keys
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
# }}}
# Status line Settings --------------------------------------------------- {{{
# General Settings
set -g status on
set -g status-interval 1
set -g status-utf8 on
set -g status-left-length 80
# Positioning/Text Settings
set -g status-left " #S "
set -g status-right "#[fg=0,bg=4]%l:%M %p #[fg=0,bg=7] %m/%d/%y "
set -g window-status-format "#[fg=white,bg=0] #I #W "
set -g window-status-current-format "#[fg=0,bg=2,noreverse,bold] #I | #W "
# Colors
set -g status-bg "0"
set -g status-left-bg "7"
set -g status-left-fg "0"
set -g status-right-bg "0"
set -g status-right-fg "7"
set -g window-status-bg "2"
set -g window-status-fg "0"
set -g message-bg "2"
set -g message-fg "0"
set -g pane-active-border-fg "2"
set -g pane-active-border-bg "0"
set -g pane-border-fg "7"
# }}}
# vim: fdm=marker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment