Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions scripts/setup-worktree.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/usr/bin/env bash
set -euo pipefail

ROOT="$(git rev-parse --show-toplevel)"
cd "$ROOT"

echo "==> Worktree: $ROOT"

if ! command -v bun >/dev/null 2>&1; then
echo "Erro: bun nao esta instalado no PATH."
exit 1
fi

mkdir -p "${T3CODE_HOME:-$HOME/.t3}"

echo "==> Instalando dependencias..."
bun install

if ! command -v codex >/dev/null 2>&1 && ! command -v claude >/dev/null 2>&1; then
echo
echo "Aviso: nem 'codex' nem 'claude' estao no PATH."
echo "O app sobe, mas voce nao vai conseguir usar provider real."
fi

echo
echo "Setup concluido."
echo "Proximo passo:"
echo " bun dev"
Loading