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[@]}" }