Created
March 14, 2015 20:46
-
-
Save zeroliu/98c2135c8d68d1e4c3f8 to your computer and use it in GitHub Desktop.
tmux config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# References: | |
# https://bitbucket.org/sjl/dotfiles/src/a0e689e096eb96c2c60d4072b24ad2cd5ec2d629/tmux/tmux.conf?at=default | |
# Use something easier to type as the prefix. | |
set -g prefix C-a | |
unbind C-b | |
bind C-a send-prefix | |
# Relax! - vim escape doesn't lag | |
set -sg escape-time 0 | |
set -sg repeat-time 600 | |
# enable utf-8 | |
setw -g utf8 on | |
set -g status-utf8 on | |
set -g default-terminal "screen-256color" | |
# Mouse | |
#set -g mode-mouse on | |
#setw -g mouse-select-window on | |
#setw -g mouse-select-pane on | |
# Less stretching to get to the first item. | |
set -g base-index 1 | |
setw -g pane-base-index 1 | |
# Saner splitting. | |
unbind % | |
unbind '"' | |
bind \ split-window -h | |
bind - split-window -v | |
#bind v split-window -h | |
#bind s split-window -v | |
#bind S choose-session | |
# Reload the config. | |
bind r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf" | |
# Layouts | |
#set -g main-pane-width 260 | |
bind M select-layout main-vertical | |
bind E select-layout even-horizontal | |
# Colors | |
set -g status-fg colour15 | |
set -g status-bg colour234 | |
#setw -g window-status-current-bg colour234 | |
setw -g window-status-current-fg colour118 | |
set -g window-status-activity-attr bold | |
set -g window-status-activity-fg colour196 | |
set -g pane-border-fg colour245 | |
set -g pane-active-border-fg colour39 | |
set -g message-fg colour16 | |
set -g message-bg colour15 | |
set -g message-attr bold | |
# status line left side | |
set -g status-left-length 40 | |
#set -g status-left "#[fg=colour118]s[#S] #[fg=colour190]w[#I] #[fg=colour190]p[#P]" | |
set -g status-left "s:#S w:#I p:#P" | |
# custom status line | |
set -g status-right-length 150 | |
set -g status-interval 5 | |
# Activity | |
setw -g monitor-activity on | |
set -g visual-activity on | |
# Center the window list | |
set -g status-justify centre | |
# Autorename sanely. | |
setw -g automatic-rename on | |
# Better name management | |
bind , command-prompt "rename-window '%%'" | |
# use vi mode | |
setw -g mode-keys vi | |
bind -t vi-copy 'v' begin-selection | |
bind -t vi-copy 'y' copy-selection | |
# quick pane cycling | |
unbind C-t | |
bind -r C-t select-pane -t :.+ | |
# Pane selection | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
# Pane resizing | |
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 | |
# Switch between last active window | |
bind -r a last-window | |
#bind -r C-h select-window -t :- | |
#bind -r C-l select-window -t :+ | |
# ----------- Scripts ----------- | |
# set up panes | |
bind P source-file ~/.tmux/dev | |
bind q killp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment