#!/bin/bash
# View pear-git logs in tmux
SESSION="pear-seed"
WINDOW="pear-git"
# Check if window exists
if ! tmux list-windows -t "$SESSION" 2>/dev/null | grep -q "$WINDOW"; then
echo "❌ No pear-git window found in $SESSION session"
echo ""
echo "Start pear-git first:"
echo " ./scripts/pear-git-start.sh"
exit 1
fi
echo "📋 Attaching to pear-git logs..."
echo " (Press Ctrl+B, then D to detach)"
echo ""
# Attach to the specific window
tmux attach -t "$SESSION:$WINDOW"