Skip to content

Instantly share code, notes, and snippets.

@HouCoder
Last active April 21, 2016 06:14
Show Gist options
  • Save HouCoder/fd887a52c581e6c0d0b1 to your computer and use it in GitHub Desktop.
Save HouCoder/fd887a52c581e6c0d0b1 to your computer and use it in GitHub Desktop.
My Tmux config, save it to ~/.tmux.conf.
# 将前置按键设置为Ctrl+a
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# 切换面板
bind-key k select-pane -U
bind-key j select-pane -D
bind-key h select-pane -L
bind-key l select-pane -R
# 将copy-mode的快捷键设置为VI模式
setw -g mode-keys vi
# 设置终端滚动最大历史记录
set -g history-limit 10000
# 调整面板大小
bind Left resize-pane -L 5
bind Right resize-pane -R 5
bind Down resize-pane -D 5
bind Up resize-pane -U 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment