温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

新版tmux添加配置

发布时间:2020-07-09 08:16:14 来源:网络 阅读:478 作者:3444542 栏目:系统运维
新版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

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI