mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 09:56:39 +00:00
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.
This commit is contained in:
@@ -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[@]}"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user