Created
June 28, 2012 18:23
-
-
Save webframp/3013054 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
# basic settings | |
#set -g default-terminal "screen-256color" | |
set -g default-terminal "xterm-256color" | |
setw -g xterm-keys on | |
set -g base-index 1 | |
set -s escape-time 0 | |
setw -g mode-mouse off | |
set -g default-command "reattach-to-user-namespace -l zsh" | |
# bindings | |
# first rebind prefic | |
unbind C-b | |
set -g prefix C-z | |
bind C-z send-prefix | |
# easily reload config | |
bind r source-file ~/.tmux.conf \; display "Reloaded!" | |
# vim like window nav | |
bind j select-pane -D | |
bind k select-pane -U | |
# and resize | |
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 | |
# bind | send-keys " ~/bin/tmux-split -h" \; send-keys "Enter" | |
# bind - send-keys " ~/bin/tmux-split -v" \; send-keys "Enter" | |
bind | split-window -h | |
bind - split-window -v | |
# colors | |
set -g status-bg white | |
set -g status-fg black | |
setw -g window-status-fg blue | |
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 blue | |
setw -g window-status-current-attr bright | |
set -g status-right "#[fg=blue]#H" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment