小程序原生组件—提升你的小程序体验
1055
2022-09-22
新版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
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~