I was getting an error like this when starting a new shell, when running ZSH: /Users/.../.zshrc:export:118: not valid in this context: export HOMEBREW_PREFIX This turned out to be caused by Jetbrains Toolbox injecting this line into my `.zshrc` without a linebreak at the end _or_ Homebrew not checking if the last line is empty ``` # Added by Toolbox App export PATH="$PATH:/Users/.../Library/Application Support/JetBrains/Toolbox/scripts"eval "$(/opt/homebrew/bin/brew shellenv)" ``` I injected a newline before eval such that it became ``` # Added by Toolbox App export PATH="$PATH:/Users/.../Library/Application Support/JetBrains/Toolbox/scripts" eval "$(/opt/homebrew/bin/brew shellenv)" ```