Hacker News new | ask | show | jobs
by ryanschneider 1112 days ago
I was just thinking the other day I’d also really like that for my terminal history, especially since I’ve often worked at “bring your own device” sized companies.
2 comments

You might be interested in https://github.com/ellie/atuin

> Atuin replaces your existing shell history with a SQLite database, and records additional context for your commands.

This is why I read HN comments. Some hidden gem always surfaces. Never seen this mentioned on any CLI awesome lists.
Atuin is outstanding. I've barely scratched the surface of its features, but it's already made a significant impact on my command line usage.
There's also McFly which is similar. I have yet to try Atuin so I can't say which is better.
I've been doing that for a decade+ now and it's marvelous.

I key everything off a shell variable called SESSION, and have a few scripts to set that before spinning up a screen/tmux instance if I don't already have one running for the context in question.

There's a somewhat dated snapshot of some of my config files (relevant and otherwise) at https://github.com/dlthomas/config-files