Stinkpot: SQLite-backed shell history
41–44 of 44 posts
Re: Stinkpot: SQLite-backed shell history
#42I 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/
Re: Stinkpot: SQLite-backed shell history
#43As 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