From dbbce4072db86ca347aa3fdee7967ade1bbd24b8 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Wed, 4 Mar 2020 00:50:58 +0100 Subject: [PATCH] tmux: keep current pwd for window splits. --- .tmux.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.tmux.conf b/.tmux.conf index 6485f24..15ee661 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -12,3 +12,7 @@ set-option -g repeat-time 300 # Exit parent process when detaching from tmux bind-key d detach-client -P + +# Keep pwd for new splits +bind-key '"' split-window -v -c '#{pane_current_path}' +bind-key % split-window -h -c '#{pane_current_path}'