解决方案
1. 在/usr/local/bin 目录下创建软链
sudo ln -s /Applications/Windsurf.app/Contents/Resources/app/bin/windsurf /usr/local/bin/windsurf
2. 执行source
source ~/.zshrc
sudo ln -s /Applications/Windsurf.app/Contents/Resources/app/bin/windsurf /usr/local/bin/windsurf
source ~/.zshrc