Stinkpot: SQLite-backed shell history
Posted by nerdypepper 3 days ago
Comments
Comment by NightMKoder 1 day ago
Comment by Valodim 1 day ago
Comment by tstenner 1 day ago
Comment by INTPenis 1 day ago
Comment by ptspts 1 day ago
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 the system) never get recorded. Another flaw: the users starts a long-running command in terminal window 1, and immediately they want to start a variant of it in terminal window 2, but it's not available in the history.
Comment by superb_dev 1 day ago
Comment by lucideer 1 day ago
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?
Comment by exiguus 1 day ago
Comment by lucideer 21 hours ago
Comment by craftkiller 3 days ago
It is written entirely in shell script, with the only dependency being sqlite itself.
Comment by microflash 3 hours ago
Comment by gertrunde 1 day ago
Currently I tend to log all my ssh sessions out to text files and grep through the whole lot to find what I want, so a better version of that would be lovely, especially if it could automatically redact secrets or similar, as I'm aware thats a downside of the current setup.
Comment by podocarp 1 day ago
Also I do like the premise, recently stopped using atuin due to all the extra bells and whistles and just went back to fzf.
Comment by apodik 1 day ago
Comment by danofsteel32 1 day ago
https://dandavis.dev/the-bash-history-i-always-wanted.html
I also use fzf to search my history I believe you just need so source the right keybindings file to make ctrl+r use fzf.
Comment by fragmede 1 day ago
Comment by apodik 1 day ago
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?
Comment by vladvasiliu 1 day ago
Now, I admit I don't use these that often, but they can be useful.
It also does stats and whatnot based on the history. I've never looked at those.
Comment by ptspts 1 day ago
Storing the shell command history in a database instead of the memory of each interactive Bash shell, it would make Bash start up faster, and also use less memory.
Comment by fpoling 1 day ago
Comment by OskarS 1 day ago
Even if you're on spinning rust, your shell history is probably in cache. You don't really need FST index for this usecase, IMHO.
Comment by fpoling 1 day ago
Comment by Kubuxu 1 day ago
The DB is at this point 10years old. I use it to evaluate my work habits and patterns. More recently I have started transitioning to a different shell and I used it to move only the functions and aliases I still use, instead of the full collection.
Comment by mkesper 1 day ago
Comment by jiehong 1 day ago
It’s quite handy.
Comment by themadsens 23 hours ago
Comment by chaz6 1 day ago
Comment by harr01 1 day ago
Comment by krick 1 day ago
Comment by firasd 1 day ago
Comment by blepblep 1 day ago
Comment by shim__ 1 day ago
Comment by icy 1 day ago
Comment by shim__ 1 day ago
Comment by hakcermani 1 day ago
Comment by prologic 1 day ago
Comment by pokstad 1 day ago
Comment by IshKebab 1 day ago
Comment by someworkk 1 day ago
Comment by soren-achebe 1 day ago
Comment by daflkfdslkfds 1 day ago