Skip to content

Commit d941403

Browse files
committed
Merge pull request #126 from achals/documentation-fix
Update new_session documentation
2 parents d4d1378 + 8fa7a6d commit d941403

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

tmuxp/server.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -404,15 +404,11 @@ def new_session(self,
404404
$ tmux new-session -s <session_name>
405405
:type session_name: string
406406
407-
:param detach: create session background::
407+
:param attach: create session in the foreground. ``attach=False`` is
408+
equivalent to::
408409
409410
$ tmux new-session -d
410-
:type detach: bool
411-
412-
:param attach_if_exists: if the session_name exists, attach it.
413-
if False, this method will raise a
414-
:exc:`tmuxp.exc.TmuxSessionExists` exception
415-
:type attach_if_exists: bool
411+
:type attach: bool
416412
417413
:param kill_session: Kill current session if ``$ tmux has-session``
418414
Useful for testing workspaces.

0 commit comments

Comments
 (0)