Show HN: Smarter Shell History for Zsh

(github.com)

12 points | by overflowy 20 hours ago ago

5 comments

  • Diti 17 hours ago ago

    It’s fun to see the difference between the LLMs (or between the LLM and the person) before and after commit `3c275fdˋ. The project switches from big diffs with commit messages on day one, to smaller diffs with no commit messages besides the summary on day two (today).

    Good idea though, I’ll ask Claude to make me the same but without the `fzf` dependency – Zsh’s “ZLE” is powerful enough.

    • overflowy 17 hours ago ago

      Thanks. I also thought of skipping fzf, but it's old, battle‑tested, and does one thing exceptionally well. I doubt I could implement something better myself. The current implementation can handle hundreds of thousands of commands relatively fast (under 50 ms on my machine).

  • throw-the-towel 17 hours ago ago

    Cool work, and I'd really appreciate a comparison to Atuin.

  • idbnstra 17 hours ago ago

    what is this used for?

    • overflowy 17 hours ago ago

      It replaces the default Zsh history functionality. It adds fuzzy searching, tracks the command's exit code and the directory it was launched from. There's a short demo video in the README.