Last Updated: February 25, 2016
·
7.07K
· orendon

tmux windows and pane split's on current directory

After latest tmux update (1.9) default-path has been removed, which means that new windows and pane split's doesn't keep your current directory, a work around this is passing -c option

bind-key c new-window -c "#{pane_current_path}"

bind-key % split-window -h -c "#{pane_current_path}"
bind-key '"' split-window -v -c "#{pane_current_path}"

For more details, check "Incompatible Changes" section on tmux 1.9 changelog http://sourceforge.net/projects/tmux/files/tmux/tmux-1.9/

1 Response
Add your response

Awesome, thanks for sharing!

over 1 year ago ·