microsoft / Codex-CLI

CLI tool that uses Codex to turn natural language commands into their Bash/ZShell/PowerShell equivalents

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

zsh - add `setopt interactivecomments`

dluc opened this issue · comments

in zsh terminal # can be interpreted as a command, for example see the error here:

# count to 5
for i in {1..5}; do echo $i; done
zsh: command not found: #
1
2
3
4
5

Calling setopt interactivecomments fixes the problem, so I think it should be added to the zsh plugin

setopt interactivecomments
# count to 5
for i in {1..5}; do echo $i; done
1
2
3
4
5