Skip to content

Commit 68e639e

Browse files
committed
Fix #167 loading multiple tmux sessions
1 parent 6dabc31 commit 68e639e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tmuxp/cli.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -476,8 +476,9 @@ def command_load(ctx, config, socket_name, socket_path, answer_yes,
476476
config = list(config)
477477
# Load each configuration but the last to the background
478478
for cfg in config[:-1]:
479-
# todo: add -d option to all these
480-
load_workspace(cfg, **tmux_options)
479+
opt = tmux_options.copy()
480+
opt.update({'detached': True})
481+
load_workspace(cfg, **opt)
481482

482483
# todo: obey the -d in the cli args only if user specifies
483484
load_workspace(config[-1], **tmux_options)

0 commit comments

Comments
 (0)