From 8155740ceb704dba7d285b8efaf468a9693e4041 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Thu, 24 May 2012 00:02:51 +0100 Subject: [PATCH] Fix window specific root path If a session root was set, any window layouts loaded with a window root set caused the window root to be ignored. This resolves the issue. --- lib/layout-helpers.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/layout-helpers.sh b/lib/layout-helpers.sh index ac7340c..7e136e4 100644 --- a/lib/layout-helpers.sh +++ b/lib/layout-helpers.sh @@ -17,6 +17,7 @@ new_window() { if [ -n "$2" ]; then local command=("$2"); fi if [ -n "$window" ]; then local winarg=(-n "$window"); fi + if [ -n "$window_root" ]; then cd "$window_root"; fi tmux new-window -t "$session:" "${winarg[@]}" "${command[@]}" }