Adjust how to share a tmux session

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2020-04-30 13:35:49 +02:00
parent 27bd767894
commit 848a796a03

View file

@ -12,17 +12,21 @@ this.
So we have created the folder: So we have created the folder:
* ``/var/tmux/shared`` which is writable to the fi-apprentice group * ``/var/tmux/`` which is writable for both the ``fi-apprentice`` and
``sysadmin`` groups
You can then create a tmux session using: You can then create a tmux session using:
``` ```
tmux -S /var/tmux/shared new -s <name> tmux -S /var/tmux/<name> new -s <name>
``` ```
And the other person(s) can join it using: And the other person(s) can join it using:
``` ```
tmux -S /var/tmux/shared att -t <name> tmux -S /var/tmux/<name> att -t <name>
``` ```
Once the person who created the shared session stops it, the people who have
joined will be kicked out of the session as well.