sqlite-backed shell history

add zsh integration script #20

Merged oppi.li
targeting main from deleted fork:gorkaerana/zsh-script
Merged opened by and assigned to oppi.li
targeting main from deleted fork:gorkaerana/zsh-script

Description #

Add a zsh script to stinkpot init, solving https://tangled.org/oppi.li/stinkpot/issues/1.

Implementation details #

This implementation changes the commands usage to stinkpot init bash or stinkpot init zsh, which I think is better developer experience. Placing all the init scripts under a map seems to me an ergonomic way to then check for correct values at runtime.

Improvements #

Sadly Go does not accept const maps, and all init scripts are actually known at compile time, which to me suggests this implementation could do a bunch more work during compilation.

Commits 0