Skip to content

Instantly share code, notes, and snippets.

View Lolozendev's full-sized avatar
🙂

ZEN Lolozendev

🙂
View GitHub Profile
@Lolozendev
Lolozendev / sharedtmux
Created July 8, 2025 22:43
a bash script to be able to create shared tmux sessions.
#!/usr/bin/env bash
SOCKDIR=/tmp/sharedtmux
SOCK=$SOCKDIR/shared.sock
SESSION=shared
GROUP=sharedtmux
# Check if user is in the sharedtmux group
if ! groups "$USER" | grep -q "\b$GROUP\b"; then
echo "User $USER is not in group $GROUP"