新版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}"
成都創(chuàng)新互聯(lián)是一家專注于做網(wǎng)站、成都做網(wǎng)站與策劃設(shè)計,鞏留網(wǎng)站建設(shè)哪家好?成都創(chuàng)新互聯(lián)做網(wǎng)站,專注于網(wǎng)站建設(shè)十余年,網(wǎng)設(shè)計領(lǐng)域的專業(yè)建站公司;建站業(yè)務(wù)涵蓋:鞏留等地區(qū)。鞏留做網(wǎng)站價格咨詢:13518219792
===========================================
default-path
won't be available in post 1.8 versions.
pane_current_path
might not be available in post 1.8 versions.
===========================================
參考網(wǎng)址 http://unix.stackexchange.com/questions/12032/create-new-window-with-current-directory-in-tmux
當前文章:新版tmux添加配置
標題路徑:
http://weahome.cn/article/pgojcj.html