Created
October 21, 2012 05:11
-
-
Save mrkvm/3925934 to your computer and use it in GitHub Desktop.
Current tmux.conf. Much of it borrowed from Pragmatic's tmux book.
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
# Make tmux use C-a instead of C-b (just like screen!) | |
unbind C-b | |
set -g prefix C-a | |
bind C-a send-prefix | |
# Reload config file | |
bind r source-file ~/.tmux.conf \; display "Config Reloaded" | |
# Reset the escape time | |
set -sg escape-time 1 | |
# Reset the repeat time | |
set -s repeat-time 1000 | |
# Moving between windows | |
bind -r C-h select-window -t :- | |
bind -r C-l select-window -t :+ | |
# Clever aliases for splitting panes | |
bind | split-window -h | |
bind - split-window -v | |
# Moving between panes | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
# Resizing 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 | |
# Mouse mode | |
setw -g mode-mouse on | |
set -g mouse-select-pane on | |
set -g mouse-resize-pane on | |
set -g mouse-select-window on | |
# Appearance | |
set -g default-terminal "screen-256color" | |
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 | |
set -g pane-border-fg white | |
set -g pane-border-bg black | |
set -g pane-active-border-fg white | |
set -g pane-active-border-bg yellow | |
set -g message-fg white | |
set -g message-bg black | |
set -g message-attr bright | |
set -g status-left-length 40 | |
set -g status-left "#[fg=green][#S] #[fg=yellow]#I #[fg=cyan]#P" | |
set -g status-justify centre | |
set -g status-utf8 on | |
setw -g monitor-activity on | |
set -g visual-activity on | |
# Copy mode | |
setw -g mode-keys vi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment