新版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}"

成都创新互联是一家专注于做网站、成都做网站与策划设计,巩留网站建设哪家好?成都创新互联做网站,专注于网站建设十余年,网设计领域的专业建站公司;建站业务涵盖:巩留等地区。巩留做网站价格咨询:13518219792

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

  • 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


分享名称:新版tmux添加配置
网页网址:http://lszwz.com/article/pgojcj.html

其他资讯

售后响应及时

7×24小时客服热线

数据备份

更安全、更高效、更稳定

价格公道精准

项目经理精准报价不弄虚作假

合作无风险

重合同讲信誉,无效全额退款