Skip to content

Commit d2813e8

Browse files
committed
changed the -n to -s for overloading the session name to reuse a tmuxp config file for multiple sessions
1 parent 60acdce commit d2813e8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Name a session:
6161

6262
.. code-block:: bash
6363
64-
$ tmxup load -n session-name ./mysession.yaml
64+
$ tmxup load -s session-name ./mysession.yaml
6565
6666
`simple`_ and `very elaborate`_ config examples
6767

docs/cli.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ are created, the last session is named from the terminal.
8989

9090
.. code-block:: bash
9191
92-
$ tmxup load -n <new-session-name> <filename1> ...
92+
$ tmxup load -s <new-session-name> <filename1> ...
9393
9494
.. _cli_import:
9595

tmuxp/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ def load_workspace(
416416
socket_path: str, optional
417417
``tmux -S <socket-path>``
418418
new_session_name: str, options
419-
``tmux new -t <new-session-name>``
419+
``tmux new -s <new-session-name>``
420420
colors : str, optional
421421
'-2'
422422
Force tmux to support 256 colors
@@ -752,7 +752,7 @@ def command_freeze(session_name, socket_name, socket_path):
752752
@click.argument('config', type=ConfigPath(exists=True), nargs=-1)
753753
@click.option('-S', 'socket_path', help='pass-through for tmux -S')
754754
@click.option('-L', 'socket_name', help='pass-through for tmux -L')
755-
@click.option('-n', 'new_session_name', help='name of the new session')
755+
@click.option('-s', 'new_session_name', help='start new session with new session name')
756756
@click.option('--yes', '-y', 'answer_yes', help='yes', is_flag=True)
757757
@click.option(
758758
'-d', 'detached', help='Load the session without attaching it', is_flag=True

0 commit comments

Comments
 (0)