Problem
It’s not a big one, but one I’ve run in to when creating python scripts to dump out commands with comments so others can see what the command does. To avoid the system returning a line every time that the command cannot find the command the following solutions apply.
Solutions
We have two solutions here:
set -k INTERACTIVE_COMMENTS
Both work well
zsh ignore commands beginning ‘#’