Created
October 25, 2012 02:26
-
-
Save liangzan/3950121 to your computer and use it in GitHub Desktop.
tmux configuration
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
## term | |
set -g default-terminal "screen-256color" | |
set -g default-shell /bin/zsh | |
## tmux window titling for X | |
set -g set-titles on | |
set -g set-titles-string '#W [#S:#I]' | |
setw -g automatic-rename on | |
## msgs | |
setw -g mode-bg red | |
setw -g mode-fg white | |
set -g message-bg red | |
set -g message-fg white | |
## no bell | |
set -g bell-action none | |
## leave our windows alone | |
set -g set-remain-on-exit on | |
## sb | |
set -g visual-activity on | |
set -g visual-content on | |
set -g status-justify centre | |
set -g status-utf8 on | |
set -g status-bg default | |
set -g status-fg green | |
set -g status-interval 3 | |
set -g status-left-length 30 | |
set -g status-left '[tmux:#H:#S]#[fg=bright,cyan][#I]' | |
set -g status-right '#[fg=green][%d/%m/%y %H:%M]' | |
setw -g monitor-activity off | |
setw -g window-status-current-fg yellow | |
setw -g window-status-current-attr underscore,bright | |
setw -g utf8 on | |
set -g display-time 2000 | |
# lock individual sessions | |
set -g lock-server off | |
# enable mouse | |
set-option -g mouse-select-pane off | |
set-option -g mouse-resize-pane off | |
set-option -g mouse-select-window off | |
set-window-option -g mode-mouse off | |
## keybinds | |
# change C-b to C-a (cmd prefix) | |
set -g prefix C-a | |
bind C-a send-prefix | |
# vertical and horizontal splits | |
unbind % | |
bind h split-window -h | |
unbind '"' | |
bind v split-window -v | |
bind-key k confirm kill-window | |
bind-key C-k confirm kill-server | |
# nested sessions C-a a | |
bind-key a send-prefix | |
# sessions | |
new -s shells | |
neww -d | |
neww -d | |
neww -d | |
neww -d | |
neww -d | |
neww -d | |
neww -d | |
neww -d | |
neww -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment