Created
November 21, 2013 08:47
-
-
Save HaiFongPan/7578069 to your computer and use it in GitHub Desktop.
tmux.conf
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
#-- base --# | |
set -g default-terminal "screen" | |
set -g display-time 3000 | |
set -g history-limit 65535 | |
#---------------------------------------------- | |
#将默认按键前缀改为与C-i避免与终端快捷键冲突 | |
set-option -g prefix C-a | |
unbind-key C-b | |
bind-key C-i send-prefix | |
#---------------------------------------------- | |
#按键绑定 | |
#水平或垂直分割窗口 (C+A+ :split-window + v/h) | |
unbind '"' | |
bind - splitw -v #分割成上下两个窗口 | |
unbind % | |
bind | splitw -h #分割成左右两个窗口 | |
#---------------------------------------------- | |
#选择分割的窗格 | |
bind k selectp -U #选择上窗格 | |
bind j selectp -D #选择下窗格 | |
bind h selectp -L #选择左窗格 | |
bind l selectp -R #选择右窗格 | |
#---------------------------------------------- | |
#重新调整窗格的大小 | |
bind ^k resizep -U 10 | |
bind ^j resizep -D 10 | |
bind ^h resizep -L 10 | |
bind ^l resizep -R 10 | |
#---------------------------------------------- | |
#交换两个窗格 | |
bind ^u swapp -U | |
bind ^d swapp -D | |
bind ^a last | |
bind q killp | |
#---------------------------------------------- | |
bind '~' splitw htop | |
bind ! splitw ncmpcpp | |
bind m command-prompt "splitw -h 'exec man %%'" | |
unbind s | |
#---------------------------------------------- | |
#定制状态行 | |
set -g status-left "#[fg=white,bg=blue] > #I < #[default] |" # 0:bash | |
set -g status-right "#[fg=yellow,bright][ #[fg=cyan]#W #[fg=yellow]]#[default] #[fg=yellow,bright]- %Y.%m.%d #[fg=green]%H:%M #[default]" | |
set -g status-right-attr bright | |
set -g status-bg black | |
set -g status-fg white | |
set -g set-clipboard on | |
setw -g window-status-current-attr bright | |
#setw -g window-status-current-bg red | |
setw -g window-status-current-bg green | |
setw -g window-status-current-fg white | |
set -g status-utf8 on | |
set -g status-interval 1 | |
#set -g visual-activity on | |
#setw -g monitor-activity on | |
set -g status-keys vi | |
#---------------------------------------------- | |
setw -g mode-keys vi | |
# 支持鼠标选择窗口,调节窗口大小 | |
setw -g mode-mouse on | |
set -g mouse-select-pane on | |
set -g mouse-resize-pane on | |
set -g mouse-select-window on | |
set -s escape-time 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment