Live data from Hacker News

Stinkpot: SQLite-backed shell history

tangled.org

41–44 of 44 posts

Re: Stinkpot: SQLite-backed shell history

#42
post #40

I would never normally mention this, but I'm reading this repo on mobile & it seems Forgejo doesn't wrap .txt files on mobile. Any reason not to use .md for a new project in 2026?

I looked it up, because for me it looked kind of cool. It's tangled not Forgejo when i got it right. [1] https://tangled.org/

Ah! I misunderstood - they were talking about forgejo & I skimmed too quickly & read it as Tangled being a forgejo host (akin to e.g. Codeberg). Turns out it's their own stack - very cool, I'm more interested now.

Re: Stinkpot: SQLite-backed shell history

#43
post #23

As indicated in https://tangled.org/oppi.li/stinkpot/blob/cdf87ffcd36e96f3d4... , this software (stinkpot) still uses Bash PROMPT_COMMAND as an entry point to copy new shell history entries to its database. PROMPT_COMMAND has the following flaw: a command gets recorded as soon as it has finished. So command which never finish (e.g. because they run for a long time, and the user closes the terminal window, or reboots…

What would be a better entry point? I honestly thought there would some hook for saving history specifically

You should track all processes spawned by bash
Post reply on HN