feat(tmux): provide custom session name

This commit is contained in:
yeti 2025-04-18 04:18:57 +01:00
parent d2be48ac3c
commit 833080739b

View File

@ -27,7 +27,8 @@ start_container_if_needed() {
--hostname "$WORKSPACE" \
--label auto-cleanup=true \
-v "${XDG_RUNTIME_DIR}"/podman/podman.sock:/run/podman/podman.sock \
"$IMAGE" -- "$TMUX_SESSION"
--entrypoint "/home/$DEV_USER/start.sh" \
"$IMAGE" "${TMUX_SESSION}"
elif ! podman inspect -f '{{.State.Running}}' "$WORKSPACE" | grep -q true; then
log "⚡ Starting existing container $WORKSPACE..."
podman start "$WORKSPACE" >/dev/null 2>&1