Created
September 23, 2013 19:43
-
-
Save richleland/6675857 to your computer and use it in GitHub Desktop.
tmux conf
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
# change the tmux prefix | |
set -g prefix C-j | |
bind C-j send-prefix | |
unbind C-b | |
# lower delay, increase responsiveness | |
set -sg escape-time 1 | |
# start window/pane numbering at 1 | |
set -g base-index 1 | |
setw -g pane-base-index 1 | |
# reload tmux config | |
bind r source-file ~/.tmux.conf \; display "Reloaded!" | |
# vim-ify tmux | |
setw -g mode-keys vi | |
unbind [ | |
bind Escape copy-mode | |
unbind p | |
bind p paste-buffer | |
bind -t vi-copy 'v' begin-selection | |
bind -t vi-copy 'y' copy-selection | |
# pane splitting | |
bind \ split-window -h | |
bind - split-window -v | |
# window and pane movement | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
bind -r C-h select-window -t :- | |
bind -r C-l select-window -t :+ | |
# 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 | |
# mouse handling | |
setw -g mode-mouse on | |
set -g mouse-select-pane on | |
set -g mouse-resize-pane on | |
set -g mouse-select-window on | |
# use 256 colors | |
set -g default-terminal "screen-256color" | |
# status bar customization | |
set -g status-utf8 | |
set -g status-left-length 40 | |
set -g status-left "#[fg=green][#S] #[fg=yellow]W#I #[fg=cyan]P#P" | |
set -g status-right "#[fg=cyan]%b %d, %I:%M %p" | |
set -g status-justify centre | |
set -g status-fg white | |
set -g status-bg 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 | |
# activity | |
set -g monitor-activity on | |
set -g visual-activity on | |
# pane divider coloring | |
#set -g pane-border-fg green | |
#set -g pane-border-bg black | |
#set -g pane-active-border-fg colour172 | |
#set -g pane-active-border-bg colour172 | |
# command line coloring | |
#set -g message-fg white | |
#set -g message-bg black | |
#set -g message-attr bright | |
# tmux/karma fix: http://rich.io/RRLO | |
set-option -g default-command "reattach-to-user-namespace -l zsh" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment