Add configuration for new version of tmux
The new version of tmux adds configuration 1. Merge / usr/share/tmux/screen-keys.conf and / usr/share/tmux/vim-keys.conf2. Open ^ c and ^ s automatically open the window for the current directory Need to modify split-window and new-window by adding-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 # 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.
=
Refer to the website http://unix.stackexchange.com/questions/12032/create-new-window-with-current-directory-in-tmux