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).
- 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)
- 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.
- Then it tries to fix something...
- And it suggests rewriting history.
I don't understand what "rewriting history" means here, or why it is desirable.
Thanks!
Ok, so I have cloi working! I tried
/historyand ran a previous command that I'd run in my zsh shell yesterday:The result was a bit confusing (see screenshot below).
cloiruns 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.I don't understand what "rewriting history" means here, or why it is desirable.
Thanks!