What am I doing wrong here?
% echo "export HOMEBREW_GITHUB_API_TOKEN=XXXX">> ~/.zshrc;
% source ~.zshrc;
zsh: no such user or named directory: .zshrc
source ~.zshrc tries to lookup the home directory for a user called
source command would presumably attempt to execute that user's home directory - and fail.
What you probably meant was this, which looks up your home directory with
~ and then
source can execute the commands in a file
.zshrc in there.