Skip to content

Commit 8277936

Browse files
committed
Fixes #724
Respect start_directory for first pane.
1 parent 9bf7a2a commit 8277936

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tmuxp/workspacebuilder.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,11 @@ def iter_create_windows(self, session, append=False):
261261
else:
262262
sd = None
263263

264+
# If the first pane specifies a start_directory, use that instead.
265+
panes = wconf["panes"]
266+
if panes and "start_directory" in panes[0]:
267+
sd = panes[0]["start_directory"]
268+
264269
if "window_shell" in wconf:
265270
ws = wconf["window_shell"]
266271
else:

0 commit comments

Comments
 (0)