config/.local/bin/tmux-worker

13 lines
273 B
Bash
Executable File

#!/bin/bash
session="system"
# Check if the session exists, discarding output
if command -v tmux has-session -t $session 2>/dev/null != 0; then
# Set up your session
tmux new-session -s "$session"
fi
# Attach to created session
tmux attach-session -t "$session"