Skip to content

zsh_setup fails when calling sed and exits immediately #121

@maxcurzi

Description

@maxcurzi

calling source zsh_setup.sh from a zsh prompt
and giving the OpenAI keys suddenly makes the prompt go away and the setup fails.
After some investigation, it looks like there is an error at: this line (in zsh_setup.sh:46)

# Remove previous settings
sed -i '' '/### Codex CLI setup - start/,/### Codex CLI setup - end/d' $zshrcPath

The error is
sed: can't read /### Codex CLI setup - start/,/### Codex CLI setup - end/d: No such file or directory

I already have ~/.zshrc, so this is a different issue from #115

If I comment that line (the one that calls sed), then the setup completes successfully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions