Skip to content

Commit 467a3d5

Browse files
committed
feat(gemini): use binary wrapper for global YOLO mode
1 parent 1219f85 commit 467a3d5

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/lib/src/core/templates/dockerfile.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@ RUN npm install -g @anthropic-ai/claude-code@latest
6363
RUN claude --version
6464
RUN npm install -g @google/gemini-cli@latest --force
6565
RUN gemini --version
66-
RUN echo "alias gemini='gemini --yolo'" >> /etc/bash.bashrc && \
67-
echo "alias gemini='gemini --yolo'" >> /etc/zsh/zshrc`
66+
RUN mv /usr/local/bin/gemini /usr/local/bin/gemini-original && \
67+
printf '#!/usr/bin/env bash\nexec /usr/local/bin/gemini-original --yolo "$@"\n' > /usr/local/bin/gemini && \
68+
chmod +x /usr/local/bin/gemini`
6869

6970
const renderDockerfileOpenCode = (): string =>
7071
`# Tooling: OpenCode (binary)

0 commit comments

Comments
 (0)