When I press Ctrl+" (create a new pane) while in a pane, which has the PWD
/tmp
for example, the new pane starts as my home folder ~
.
I looked at https://unix.stackexchange.com/a/109255/72471 and it helped me with the same issue concerning windows.
However, I couldn't fix the split-window
issue by inserting
bind " split-window -c "#{pane_current_path}"
into my ~/.tmux.conf
.
I am using tmux 1.9a and therefor don't want a rather messy solution for older versions stated here (it doesn't work in my case, anyway):
bind '"' set default-path "" \; split-window -v \; set -u default-path
How can I tell tmux
to set the default directory as the current path of a pane, when creating a new pane?