Installation script fails on macOS with zsh
Hello,
I encountered an installation issue while setting up a new project using agent-starter-pack create on my macOS system, which uses zsh as the default shell.
Problem:
The make install command fails with Error 1 because the setup script appears to be trying to modify a .bashrc file, which does not exist on my system. The error message is:
/bin/sh: /Users/xx/.bashrc: No such file or directory.
This leads to a secondary problem where the uv command, though installed to ~/.local/bin, is not added to the system PATH. This causes the make playground command to fail with uv: No such file or directory.
Suggested Solution:
The installation script could be improved to detect the user's shell (e.g., zsh) and modify the correct configuration file (~/.zshrc) instead of assuming .bashrc.
The manual workaround was to run source $HOME/.local/bin/env and permanently add the PATH to ~/.zshrc. It would be a great improvement if the script could handle this for macOS users automatically.
Thank you!
Thanks a lot for flagging this, I also noticed that there was a bug in the makefile.
I fixed it in #209 - hope that this works!