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_plugin.zsh:12: parse error near `interactivecomments' #120

Closed TheVexy closed 1 year ago

TheVexy commented 1 year ago

Not quite sure why this happens:

image

My .zshrc file :

# BEGIN SNIPPET: Platform.sh CLI configuration
HOME=${HOME:-'/home/felix'}
export PATH="$HOME/"'.platformsh/bin':"$PATH"
if [ -f "$HOME/"'.platformsh/shell-config.rc' ]; then . "$HOME/"'.platformsh/shell-config.rc'; fi # END SNIPPET

#CODEX-CLI
export CODEX_CLI_PATH=$CODEX_CLI_PATH
source $HOME/codex-cli/scripts/zsh_plugin.zsh
bindkey '^G' create_completion
### Codex CLI setup - end
TheVexy commented 1 year ago

It was due to my file being in CRTF and not LF. It's fixed and works as expected now