New panes in tmux open in same dir as one opening it

This commit is contained in:
Tony Grosinger 2017-09-14 07:07:18 -07:00 committed by Tony Grosinger
parent b2ba936a85
commit 855b161953

View File

@ -13,6 +13,10 @@ set-window-option -g mode-keys vi
bind-key -t vi-copy v begin-selection
bind-key -t vi-copy y copy-pipe 'xclip -selection clipboard'
# New panes and windows have same cwd as the one opening it
bind c new-window -c "#{pane_current_path}"
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
### vim/tmux navigation
set -g focus-events on