Skip to content

Instantly share code, notes, and snippets.

@rainyear
Created July 8, 2014 02:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rainyear/6bac87d120bb5819fa63 to your computer and use it in GitHub Desktop.
Save rainyear/6bac87d120bb5819fa63 to your computer and use it in GitHub Desktop.
tmux config file.
set -g prefix ^a
unbind ^b
bind a send-prefix
unbind '"'
bind - splitw -v -c "#{pane_current_path}"# 分割成上下两个窗口
unbind %
bind = splitw -h -c "#{pane_current_path}"# 分割成左右两个窗口
bind c new-window -c "#{pane_current_path}"
bind k selectp -U # 选择上窗格
bind j selectp -D # 选择下窗格
bind h selectp -L # 选择左窗格
bind l selectp -R # 选择右窗格
bind ^k resizep -U 10 # 跟选择窗格的设置相同,只是多加 Ctrl(Ctrl-k)
bind ^j resizep -D 10 # 同上
bind ^h resizep -L 10 # ...
bind ^l resizep -R 10 # ...
setw -g mode-keys vi
set-option -g status-right "#(date +%H:%M' ')"
set-option -g status-utf8 on
set-option -g base-index 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment