Last active
August 11, 2016 11:22
-
-
Save scarecrow1123/3636f9d240745ddbfea1162142df515e to your computer and use it in GitHub Desktop.
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
# tmux.conf - almost everything noted from the book "tmux Productive Mouse-Free Development" by "Brian P. Hogan" | |
# change default prefix to C-a and unbind C-b | |
set -g prefix C-a | |
unbind-key C-b | |
# to enable other programs to detect C-a(by double pressing) | |
bind-key C-a send-prefix | |
# '|' for vertical split and '-' for horizontal split | |
bind | split-window -h | |
bind - split-window -v | |
# h,j,k,l for pane navigation | |
bind -r h select-pane -L | |
bind -r j select-pane -D | |
bind -r k select-pane -U | |
bind -r l select-pane -R | |
# window navigation | |
bind -r C-h select-window -t :- | |
bind -r C-l select-window -t :+ | |
# H,J,K,L for pane resizing(by one row/column) | |
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 | |
# enable mouse actions | |
# TODO - get red of these :P | |
setw -g mode-mouse on | |
set -g mouse-select-pane on | |
set -g mouse-resize-pane on | |
set -g mouse-select-window on | |
# 256 colors | |
set -g default-terminal "screen-256color" | |
# status bar colors | |
set -g status-fg white | |
set -g status-bg black | |
# window list colors | |
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 | |
# pane colors | |
set -g pane-border-fg green | |
set -g pane-border-bg black | |
set -g pane-active-border-fg white | |
set -g pane-active-border-bg yellow | |
# command line colors | |
set -g message-fg white | |
set -g message-bg black | |
set -g message-attr bright | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment