Skip to content

Instantly share code, notes, and snippets.

@rezwyi
Created January 27, 2013 14:03
Show Gist options
  • Save rezwyi/4648448 to your computer and use it in GitHub Desktop.
Save rezwyi/4648448 to your computer and use it in GitHub Desktop.
Tmux configuration file
# vim:set ft=tmux:
# Terminal
setw -g utf8 on
set -g default-terminal "screen-256color"
set-option -g default-shell /bin/zsh
# Color
source-file '~/.tmux/tmux-colors-solarized/tmuxcolors-light.conf'
# Prefix
unbind C-b
set-option -g prefix C-a
bind a send-prefix
# Config
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Next window
unbind n
bind C-a next
# Copy mode
unbind [
unbind ]
bind Escape copy-mode
bind p paste-buffer
# Panes
unbind C-o
bind up resize-pane -U 10
bind down resize-pane -D 10
bind left resize-pane -L 10
bind right resize-pane -R 10
bind tab next-layout
bind-key j select-pane -D
bind-key k select-pane -U
bind-key h select-pane -L
bind-key l select-pane -R
# Titles
set-window-option -g automatic-rename on
# Options
set-option -g base-index 1
set-option -g display-time 2000
set-option -g mouse-select-pane on
set-option -g mouse-resize-pane on
set-option -g mouse-utf8 on
set-option -g mouse-select-window on
set-option -g pane-active-border-fg blue
set-option -g pane-active-border-bg black
set-option -g pane-border-fg white
set-option -g pane-border-bg black
set-option -g status-keys vi
set-option -g mode-keys vi
set-option -g history-limit 8192
set-option -s escape-time 100
# Status Bar
set-option -g status on
set-option -g status-interval 2
set-option -g status-utf8 on
set-option -g status-justify "centre"
set-option -g status-left-length 90
set-option -g status-right-length 90
set-option -g status-left "#(~/.tmux/tmux-powerline/status-left.sh)"
set-option -g status-right "#(~/.tmux/tmux-powerline/status-right.sh)"
# Mouse support
set -g mode-mouse on
set -g mouse-resize-pane on
set -g mouse-select-pane on
set -g mouse-select-window on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment