From 2e76f1d7c0c4f26e4d80c364055b354b47881e97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Bastian?= Date: Tue, 30 May 2017 16:31:15 +0200 Subject: [PATCH] tmux: split/new window in the same working directory --- files/.tmux.conf | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/files/.tmux.conf b/files/.tmux.conf index a9e1e7a..7a16dbf 100644 --- a/files/.tmux.conf +++ b/files/.tmux.conf @@ -29,8 +29,11 @@ bind -n C-M-l resize-pane -R # Splitting unbind % unbind '"' -bind | split-window -h -bind - split-window -v +bind | split-window -h -c "#{pane_current_path}" +bind - split-window -v -c "#{pane_current_path}" + +# New windows use the same working directory +bind c new-window -c "#{pane_current_path}" # Set window notifications setw -g monitor-activity on