diff --git a/src/vm.ts b/src/vm.ts index 246e5b4..3dd058f 100644 --- a/src/vm.ts +++ b/src/vm.ts @@ -48,6 +48,9 @@ export async function ensure(log?: (msg: string) => void): Promise { log?.("Installing packages") await $`container exec ${CONTAINER_NAME} bash -c ${"apt update && apt install -y curl git neofetch fish"}`.quiet() + // Create symlinks so git worktree absolute paths from the host resolve inside the container + await $`container exec ${CONTAINER_NAME} bash -c ${`mkdir -p '${home}' && ln -s /host '${home}/dev' && ln -s /sandlot '${home}/.sandlot'`}`.quiet() + // Install Claude Code and configure (as ubuntu user) log?.("Installing Claude Code") await $`container exec --user ${USER} ${CONTAINER_NAME} bash -c ${"curl -fsSL https://claude.ai/install.sh | bash"}`.quiet()