fix: run-2 cascade (per-name cleanup), and claude on exec's PATH #20
1 changed files with 4 additions and 0 deletions
|
|
@ -49,6 +49,10 @@ runcmd:
|
||||||
- curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
|
- curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
|
||||||
- apt-get install -y nodejs
|
- apt-get install -y nodejs
|
||||||
- sudo -u claude bash -lc 'curl -fsSL https://claude.ai/install.sh | bash'
|
- sudo -u claude bash -lc 'curl -fsSL https://claude.ai/install.sh | bash'
|
||||||
|
# 'claudebox exec box -- claude …' runs through a NON-interactive shell, which
|
||||||
|
# reads no .bashrc/.zshrc — a PATH export there is invisible to it. The
|
||||||
|
# symlink makes claude reachable from every shell, interactive or not.
|
||||||
|
- ln -sf /home/claude/.local/bin/claude /usr/local/bin/claude
|
||||||
- echo 'export PATH="$HOME/.local/bin:$PATH"' >> /home/claude/.bashrc
|
- echo 'export PATH="$HOME/.local/bin:$PATH"' >> /home/claude/.bashrc
|
||||||
- chsh -s /usr/bin/zsh claude
|
- chsh -s /usr/bin/zsh claude
|
||||||
- sudo -u claude bash -lc 'RUNZSH=no CHSH=no sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"'
|
- sudo -u claude bash -lc 'RUNZSH=no CHSH=no sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue