Last active
January 3, 2016 00:02
-
-
Save NoAnyLove/6e4cc5b207f27bea8ee7 to your computer and use it in GitHub Desktop.
我的tmux配置文件
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
## general | |
set-option -g history-limit 65535 | |
## time | |
set-option -g display-time 5000 # message display time in (ms), should long enough | |
set-option -g repeat-time 1000 # lasting time (ms) between a repeatable command | |
set-option -sg escape-time 1 # waiting time (ms) after prefix, small for more responsitive | |
## style | |
set-option -g status-keys vi | |
set-window-option -g mode-keys vi | |
set-window-option -g utf8 on | |
## modify prefix to activate tmux | |
set-option -g prefix C-a | |
unbind-key C-b | |
bind-key C-a send-prefix | |
# control sessions | |
bind-key C-z kill-session | |
## split window | |
unbind '"' | |
bind - splitw -v # vertical split (prefix -) | |
unbind % | |
bind | splitw -h # horizontal split (prefix |) | |
## easy to swich window, like byobu | |
bind-key -n F2 new-window | |
bind-key -n F3 previous-window | |
bind-key -n F4 next-window | |
## clear scrollback buffer | |
bind c-l clear-history | |
# reload config file | |
bind c-r source-file ~/.tmux.conf \; display "Config Reloaded!" | |
## color | |
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 green | |
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 | |
## status bar | |
set-option -g status-utf8 on | |
set -g status-interval 60 | |
set -g status-left "#[fg=green]Session: #S #[fg=yellow]Window: #I #[fg=cyan]Pane: #P" | |
set -g status-left-length 30 | |
set-option -g status-right "#[fg=cyan]#(date +%H:%M' ')" # right part: time lisk 23:59 | |
set-option -g status-right-length 10 # more space left for center part (window names) | |
set -g status-justify centre | |
set-option -g default-terminal "xterm-256color" | |
set -g terminal-overrides "xterm*:kLFT5=\eOD:kRIT5=\eOC:kUP5=\eOA:kDN5=\eOB:smkx@:rmkx@" | |
set -g xterm-keys on | |
set -g status-bg colour236 | |
setw -g mode-mouse on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment