新版tmux添加配置

新版tmux添加配置
1. 合并 /usr/share/tmux/screen-keys.conf 和 /usr/share/tmux/vim-keys.conf
2. 开启^c和^s自动打开窗口为当前目录,需要修改 split-window和new-window 后面添加   -c "#{pane_current_path}"
# split windows like vim
# vim's definition of a horizontal/vertical split is reversed from tmux's
#   bind s split-window -v -c "#{pane_current_path}"
#   bind v split-window -h -c "#{pane_current_path}"
#   # screen ^C c
#   unbind ^C
#   bind ^C new-window -c "#{pane_current_path}"
#   unbind c
#   bind c new-window -c "#{pane_current_path}"
# split -v |
#unbind |
#bind | split-window -c "#{pane_current_path}"


===========================================

  • default-path won't be available in post 1.8 versions.

  • pane_current_path might not be available in post 1.8 versions.

  • ===========================================


参考网址 http://unix.stackexchange.com/questions/12032/create-new-window-with-current-directory-in-tmux

你可能感兴趣的:(unix,配置,tmux)