From 219f61376fb456a50d701af49a69e9b5ca350aad Mon Sep 17 00:00:00 2001 From: Valentin Gehrke Date: Thu, 1 Oct 2015 05:43:30 +0200 Subject: [PATCH] Panes should be opened in same directory --- tmux.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tmux.conf b/tmux.conf index aedcde2..babefc6 100644 --- a/tmux.conf +++ b/tmux.conf @@ -12,3 +12,7 @@ set -g base-index 1 # window tabs setw -g window-status-format " #[bg=default]#[fg=green]#W" setw -g window-status-current-format " #[bg=default]#[fg=green]<#W>" + +# use current path when opening panes +bind % split-window -h -c "#{pane_current_path}" +bind '"' split-window -v -c "#{pane_current_path}"