Skip to content

zsh_setup fails when calling sed and exits immediately #121

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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