新版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://kswsj.cn/article/pgojcj.html