# Stinkpot: A Lightweight SQLite-Backed Shell History Searcher for Bash

Original title: Stinkpot: SQLite-backed shell history

> Hacker News story 49034777 · language: en · submitted 2026-07-24
> Web version: https://zeli.app/story/49034777
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 125 · by [nerdypepper](<https://news.ycombinator.com/user?id=nerdypepper>) · 💬 40
[original](<https://tangled.org/oppi.li/stinkpot>) · [HN discussion](<https://news.ycombinator.com/item?id=49034777>)

## Summary

I created Stinkpot because I found Atuin too heavy for my needs. While I appreciated Atuin's session-agnostic history and TUI, I didn't need its sync server, AI, or dotfile management. Stinkpot is a tiny, 400-line Go tool that uses SQLite to provide fast reverse search for Bash history without the extra complexity.

## Key quote

> Stinkpot is a much tinier Atuin, providing only the session-agnostic history management and searcher TUI I actually use.

## HN discussion (40 comments)

### [NightMKoder](<https://news.ycombinator.com/item?id=49055642>)

> 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.

### [ptspts](<https://news.ycombinator.com/item?id=49056834>)

> 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 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.

### [craftkiller](<https://news.ycombinator.com/item?id=49037303>)

> 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.

### [lucideer](<https://news.ycombinator.com/item?id=49058153>)

> \<unrelated side note for the author>
>
> 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?

### [mkesper](<https://news.ycombinator.com/item?id=49057715>)

> How do these compare to the fish builtin history search with dir awareness and completion menu? I found it quite an improvement to bash history handling but fish isn't POSIX compatible so sometimes you need to switch back and forth.

---

## Cite

- Page: https://zeli.app/story/49034777
- Date: 2026-07-24
- Source: tangled.org (https://tangled.org/oppi.li/stinkpot)
- Hacker News: https://news.ycombinator.com/item?id=49034777

## Other languages

- zh: https://zeli.app/zh/story/49034777 · markdown: https://zeli.app/zh/story/49034777.md
- ja: https://zeli.app/ja/story/49034777 · markdown: https://zeli.app/ja/story/49034777.md
- ko: https://zeli.app/ko/story/49034777 · markdown: https://zeli.app/ko/story/49034777.md
- de: https://zeli.app/de/story/49034777 · markdown: https://zeli.app/de/story/49034777.md
- es: https://zeli.app/es/story/49034777 · markdown: https://zeli.app/es/story/49034777.md
