Skip to content

Commit 4f795ab

Browse files
committed
Change default behaviour on splitting windows, so it uses current path
1 parent c49bc56 commit 4f795ab

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.tmux.conf

+6-2
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,13 @@ set-window-option -g automatic-rename on
4242
# aggresive resize
4343
setw -g aggressive-resize on
4444

45+
# Bind keys so it opens new windows with current path
46+
#unbind c
47+
#bind c neww -c '#{pane_current_path}'
48+
4549
# Saner splitting.
46-
bind v split-window -h
47-
bind s split-window -v
50+
bind v split-window -h -c '#{pane_current_path}'
51+
bind s split-window -v -c '#{pane_current_path}'
4852
bind S choose-session
4953

5054
# moving between panes

0 commit comments

Comments
 (0)