Skip to content

Instantly share code, notes, and snippets.

@qianlifeng
Last active July 24, 2016 08:21
Show Gist options
  • Save qianlifeng/097ddbbc373d9c0780a9 to your computer and use it in GitHub Desktop.
Save qianlifeng/097ddbbc373d9c0780a9 to your computer and use it in GitHub Desktop.
tmux配置
#-- base settings --#
set -g default-terminal "screen-256color"
set -g display-time 3000
set -g escape-time 0
set -g history-limit 65535
set -g base-index 1
set -g pane-base-index 1
# modify prefix to activate tmux
set-option -g prefix C-a
unbind-key C-b
bind-key C-a send-prefix
#disable renaming window title
set-window-option -g automatic-rename off
set-window-option -g automatic-rename off
## select pane (move like vim)
bind -r k select-pane -U # above (prefix k)
bind -r j select-pane -D # below (prefix j)
bind -r h select-pane -L # left (prefix h)
bind -r l select-pane -R # right (prefix l)
#copy-mode 将快捷键设置为vi 模式
setw -g mode-keys vi
# window title string (uses statusbar variables)
set -g set-titles-string '#T'
# status bar with load and time
set -g status-fg '#999999'
set -g status-bg colour235
set -g status-left-fg green
set -g status-left-bg colour235
set -g status-right-fg green
set -g status-right-bg colour235
set -g status-left-length 90
set -g status-right-length 90
set -g status-left ''
set -g status-right '#(whoami)@#H'
set -g status-justify "centre"
set -g window-status-format '#I #W'
set -g window-status-current-format ' #I #W '
setw -g window-status-current-bg colour235
setw -g window-status-current-fg green
# key bindings for horizontal and vertical panes
set-option -g allow-rename off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment