I recently switched from using bash to using zsh on my Mac. I have the Google Cloud SDK installed which provides the cli tool gcloud. When I start a zsh session
gcloud