Skip to content
HN On Hacker News ↗

oppi.li/stinkpot

▲ 127 points 40 comments by nerdypepper 4w ago HN discussion ↗

Pangram verdict · v3.3

We believe that this document is fully human-written

1 %

AI likelihood · overall

Human
100% human-written 0% AI-generated
SEGMENTS · HUMAN 3 of 3
SEGMENTS · AI 0 of 3
WORD COUNT 351
PEAK AI % 1% · §1
Analyzed
Jul 26
backend: pangram/v3.3
Segments scanned
3 windows
avg 117 words each
Distribution
100 / 0%
human / AI fraction
Verdict
Human
Pangram v3.3

Article text · 351 words · 3 segments analyzed

Human AI-generated
§1 Human · 1%

Configure Feed

Issues

Pull Requests

Commits

Tags

Feed URL

Select the types of activity you want to include in your feed. sqlite-backed shell history

Configure Feed

Issues

Pull Requests

Commits

Tags

Feed URL

Select the types of activity you want to include in your feed.

Go 82.5%

Nix 17.5%

4

1

0

Clone this repository

Use permalink

HTTPShttps://tangled.org/oppi.li/stinkpot

§2 Human · 1%

https://tangled.org/did:plc:wqstj3k5tslmm246baaf3tpa

SSHgit@tangled.org:oppi.li/stinkpot git@tangled.org:did:plc:wqstj3k5tslmm246baaf3tpa

For self-hosted knots, clone URLs may differ based on your setup.

Download tar.gz

Download .zip

Commits 4 Signed-off-by: oppiliappan <me@oppi.li> Signed-off-by: oppiliappan <me@oppi.li> speeds up reverse search, the sqlite plan now uses covering indexinstead of temp b-tree for order-bySigned-off-by: oppiliappan <me@oppi.li>

readme.txt stinkpot -------- _ _ / \ _ (_\/\_/\/_) /\/ \/\ \/\_/\/ \/_\/ " "

stinkpot is an sqlite backed shell-history searcher for bash.

stinkpot is a much tinier atuin (https://atuin.sh). i have been using atuin for a while, but i don't use most of its features: the sync server, atuin AI, dotfiles manager, script manager or the KV store. while sync is interesting, my machines have very different setups and i tend to run very different commands on them.

§3 Human · 0%

my only usecase for atuin was the session agnostic history management, and the searcher TUI. stinkpot provides these while being about 400 lines of go.

stinkpot is a tiny turtle species apparently, hence the name.

develop -------

to build:

go build -o stinkpot .

usage -----

if you use home-manager for nixos, stinkpot has a home-manager module:

home-manager.users.<name> = { imports = [ ./home.nix inputs.stinkpot.homeManagerModules.default ]; };

if not, just call eval the init script in your .bashrc:

eval "$(stinkpot init)"

start by importing your existing bash history into stinkpot:

stinkpot import

and then hit ctrl+r at your shell to trigger reverse search:

> search history... 1s vim flake.nix 3m redis-server 3m jj l 35m jj show m 36m jj git fetch 39m cd 40m vim readme.txt 788 matches · ↑/↓ move · enter accept · esc cancel

hit tab/enter to accept the selection, hit enter again to execute. the history database is stored in ~/.local/share/stinkpot. if upgrades break the DB, just delete it and run the import command.