Skip to content

Instantly share code, notes, and snippets.

@charlieparkes
Created September 30, 2017 01:12
Show Gist options
  • Save charlieparkes/93a7f01788da6c2e0e6d16f8e2834a28 to your computer and use it in GitHub Desktop.
Save charlieparkes/93a7f01788da6c2e0e6d16f8e2834a28 to your computer and use it in GitHub Desktop.
How to share tmux sessions #tmux
Shared tmux session with unified input
---- Owner ----
tmux -S /tmp/{session_name} new -s {session_name}
chgrp {shared_group} /tmp/session_name
---- Participant ----
tmux -S /tmp/{session_name} a -t {session_name}
Shared tmux session with separate input
---- Owner ----
tmux -S /tmp/{session_name} new -s {owner_name}
chgrp {shared_group} /tmp/{session_name}
----Participant ----
tmux -S /tmp/{session_name} a -t {owner_name} -s {participant_name}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment