keep cwd when creating new windows, panes in tmux

This commit is contained in:
Sloane Perrault 2022-08-04 09:45:36 -04:00
parent ebb7e80861
commit bcc4f9cafe

View file

@ -35,4 +35,9 @@ bind-key -T copy-mode-vi C-k select-pane -U
bind-key -T copy-mode-vi C-l select-pane -R bind-key -T copy-mode-vi C-l select-pane -R
bind-key -T copy-mode-vi 'C-\' select-pane -l bind-key -T copy-mode-vi 'C-\' select-pane -l
# Set new panes to open in current directory
bind c new-window -c "#{pane_current_path}"
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
run '~/.tmux/plugins/tpm/tpm' run '~/.tmux/plugins/tpm/tpm'