diff --git a/docs/usage.rst b/docs/usage.rst index b711525..dd298f8 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -33,6 +33,9 @@ To start or switch to a session use:: pytmux run +You can provider a list of configs to run. Pytmux will run then in turn and +the last one will end up on the screen. + doctor ~~~~~~ diff --git a/pytmux/cli.py b/pytmux/cli.py index 622d117..0c9a6a4 100644 --- a/pytmux/cli.py +++ b/pytmux/cli.py @@ -2,7 +2,7 @@ Usage: pytmux list - pytmux run + pytmux run ... pytmux edit [--copy ] pytmux doctor pytmux -h | --help @@ -10,7 +10,8 @@ Commands: list Lists all configs. - run Runs the specified config. + run ... Runs the specified config. The last config will end + up on the screen. edit Edits the specified config, with --copy will make a new config based on the one specified. doctor Validates all of you configs. @@ -38,7 +39,8 @@ def main(): if arguments['list']: list_configs() elif arguments['run']: - run_config(arguments['']) + for config in arguments['']: + run_config(config) elif arguments['edit']: edit_config(arguments[''], arguments['--copy'], arguments[''])