jpsa7q
Last Updated: February 25, 2016
·
2.805K
· orendon
Me

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/

Say Thanks
Respond

1 Response
Add your response

14241
1e9ce2c15d24684d45ae475c5d9fc4d4

Awesome, thanks for sharing!

over 1 year ago ·
Awesome Job

36e452a4 f0ff 11e7 9fb1 a623ddec3361
Senior Software System Engineer
·
Eugene, Oregon or Mountain View, CA
·
Full Time