Skip to content

Instantly share code, notes, and snippets.

@bitdust
Last active October 16, 2015 13:09
Show Gist options
  • Save bitdust/e0bbb8d68da197051ec6 to your computer and use it in GitHub Desktop.
Save bitdust/e0bbb8d68da197051ec6 to your computer and use it in GitHub Desktop.
# 替换tmux prefix键为 Ctrl+a
set -g prefix C-a
bind-key C-a send-prefix
unbind C-b
# zoom pane <-> window
#http://tmux.svn.sourceforge.net/viewvc/tmux/trunk/examples/tmux-zoom.sh
bind ^z run "tmux-zoom"
##
#copy-mode 将快捷键设置为vi 模式
setw -g mode-keys vi
#将r 设置为加载配置文件,并显示"reloaded!"信息
bind r source-file ~/.tmux.conf \; display "Reloaded!"
#up
bind-key k select-pane -U
#down
bind-key j select-pane -D
#left
bind-key h select-pane -L
#right
bind-key l select-pane -R
#select last window
bind-key C-l select-window -l
# 关闭状态栏
set -g status off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment