We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b632a9 commit 29ca748Copy full SHA for 29ca748
tmuxp/cli.py
@@ -399,10 +399,17 @@ def command_load(args):
399
"""Load a session from a tmuxp session file."""
400
401
if isinstance(args.config, list):
402
- for config in args.config:
+ # Load each configuration but the last to the background
403
+ for config in args.config[:-1]:
404
new_args = argparse.Namespace(**args.__dict__)
405
+ new_args.detached = True
406
new_args.config = config
407
command_load(new_args)
408
+
409
+ # The last one will be detached if specified on the command line
410
+ new_args = argparse.Namespace(**args.__dict__)
411
+ new_args.config = args.config[-1]
412
+ command_load(new_args)
413
return
414
415
if '.' == args.config:
0 commit comments