Last active
July 12, 2021 12:24
-
-
Save stanbar/c7218958beaf44931ea2e6ae65564758 to your computer and use it in GitHub Desktop.
Tmux pair programming session for multiple linux users
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# execute only the first time: | |
# sudo groupadd pair-programming | |
# sudo usermod -a -G pair-programming <host username> | |
# sudo usermod -a -G pair-programming <your peer username> | |
tmux -S /tmp/sharedtmux new-session -d -s pair-programming && \ | |
sudo chgrp pair-programming /tmp/sharedtmux && \ | |
chmod g+rwx /tmp/sharedtmux |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# When shared session is created, you can join it with this command | |
tmux -S /tmp/sharedtmux attach |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment