Since #767 there is a new line eval "$(/opt/homebrew/bin/brew shellenv)" which now on my x86_64 Mac will always error no such file or directory: /opt/homebrew/bin/brew because homebrew sits in /usr/local. There should be some check before running this command.