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/
Written by Oscar Rendón
Related protips
1 Response
Awesome, thanks for sharing!
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Tmux
Authors
Related Tags
#tmux
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#