Skip to content

Example run: Why is it rewriting history? #7

Description

@canadaduane

Ok, so I have cloi working! I tried /history and ran a previous command that I'd run in my zsh shell yesterday:

lsof -n -P -i | grep 3000

The result was a bit confusing (see screenshot below).

  1. When I run this command in my shell, it seems to run just fine: no processes are running on port 3000, so it exits (with code 1)
  2. When cloi runs it, I guess it detects that it's a command with a failing exit code? I don't need it to do anything, I was just curious what would happen.
  3. Then it tries to fix something...
  4. And it suggests rewriting history.
Image

I don't understand what "rewriting history" means here, or why it is desirable.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions