Stinkpot: SQLite-backed shell history

(tangled.org)

43 points | by nerdypepper 1 day ago

8 comments

  • NightMKoder 48 minutes ago
    FWIW I use atuin (https://atuin.sh/) and am reasonably happy with it, especially the infinite capacity & snapiness. Ignoring the sync features, I believe it's also sqlite backed when running in local-only mode.
    • tstenner 19 minutes ago
      AFAIK it is always backed by a sqlite DB. That way the sync just populates the DB and the completion process doesn't care (or wait for) the central source.
  • apodik 21 minutes ago
    is there a particular reason why i'd want sqlite-backed shell history? i mean sure it works but why not a text file? (which i'd assume is somewhat faster because you can just append)

    i guess you could say it's because you may want dates for each command but for that you can just use a CSV or TSV file no?

    does it have to do with the searching?

  • podocarp 1 hour ago
    A little curious but too lazy to find out, what's the difference between this and atuin vs fzf?

    Also I do like the premise, recently stopped using atuin due to all the extra bells and whistles and just went back to fzf.

    • apodik 27 minutes ago
      seems to only have session agnostic history and a TUI for searching it, because the author didn't want all the features atuin offers. only 400 LOC too, pretty neat
  • craftkiller 1 day ago
    For those of you on zsh, I have been a big fan of https://github.com/larkery/zsh-histdb

    It is written entirely in shell script, with the only dependency being sqlite itself.

  • blepblep 11 minutes ago
    For me the killer feature of atuin is that it allows searching the history of commands executed from the current working directory. Typically I have 10,000 plus commands in history but only a few in the current directory and I tend to run the same complex commands from the same directory.
  • IshKebab 14 minutes ago
    I wonder if the author is aware of McFly. That doesn't have all the features of Atuin that they say they don't want.
  • prologic 50 minutes ago
    Does this automatically handle deduplication?
  • soren-achebe 10 hours ago
    [flagged]