# Auto-launch tmux
if command -v tmux &> /dev/null && [ -z "$TMUX" ]; then
    # If no tmux server running, start one (continuum will auto-restore)
    # Otherwise attach to existing session
    if ! tmux has-session 2>/dev/null; then
        exec tmux new-session
    else
        exec tmux attach-session
    fi
fi


