Skip to content

Instantly share code, notes, and snippets.

@kaiye
Last active December 27, 2018 06:32
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 kaiye/307e955e4cd8e19bc34181c4fd114b1b to your computer and use it in GitHub Desktop.
Save kaiye/307e955e4cd8e19bc34181c4fd114b1b to your computer and use it in GitHub Desktop.
# 开启鼠标模式 version >= 2.1
set-option -g mouse on
# 开启鼠标模式 version < 2.1
# set -g mode-mouse on
# 允许鼠标选择窗格 version < 2.1
# set -g mouse-select-pane on
# 如果喜欢给窗口自定义命名,那么需要关闭窗口的自动命名
set-option -g allow-rename off
# 如果对 vim 比较熟悉,可以将 copy mode 的快捷键换成 vi 模式
# set-window-option -g mode-keys vi
set-option -g default-command "reattach-to-user-namespace -l zsh"
# 切分窗口与新建窗口时使用当前面板路径
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment