After the brew installation, you should also run the following
Run these two commands in your terminal to add Homebrew to your PATH:
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/zxilu/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
The xcode command line tools should be installed before brew.
After installing zcli, it is not directly available on the PATH
In the init.sh file: