microsoft / Codex-CLI

CLI tool that uses Codex to turn natural language commands into their Bash/ZShell/PowerShell equivalents
MIT License
2k stars 184 forks source link

zsh - add `setopt interactivecomments` #102

Closed dluc closed 2 years ago

dluc commented 2 years ago

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