From 95a32c15f92221a11d6c2e3ff401158f0950b133 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Thu, 28 Feb 2019 00:27:59 +0100 Subject: [PATCH] Use current path for new tmux windows/panes --- dotfiles/.tmux.conf | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/dotfiles/.tmux.conf b/dotfiles/.tmux.conf index b35c4b9..898c4ee 100644 --- a/dotfiles/.tmux.conf +++ b/dotfiles/.tmux.conf @@ -4,9 +4,12 @@ unbind C-b set -g prefix C-Space -bind | split-window -h -bind < split-window -h # | without shift on german keyboard -bind - split-window -v +# Open new windows/panes with the path in current pane +bind c new-window -c '#{pane_current_path}' +bind | split-window -h -c '#{pane_current_path}' +bind < split-window -h -c '#{pane_current_path}' +bind - split-window -v -c '#{pane_current_path}' + bind x kill-pane bind X kill-window bind r source-file ~/.tmux.conf