linuxbox/start_toolbox.sh

12 lines
272 B
Bash
Executable File

#!/bin/bash
# Name of the tmux session
SESSION_NAME="toolbox"
# Check if the tmux session already exists
if tmux has-session -t "$SESSION_NAME" 2>/dev/null; then
tmux attach-session -t "$SESSION_NAME"
else
tmux new-session -s "$SESSION_NAME" "devspectoolbox"
fi