Live data from Hacker News

Atuin replaces your existing shell history with a SQLite database

github.com

11–20 of 198 posts

Re: Atuin replaces your existing shell history with a SQLite database

#11
post #6

What's it like with many shells/panes in multiplexers open? I often find my history from one or another either lost or not available across different ones.

Syncs instantly between them

You can optionally filter by the current window session, current machine, or commands across all machines you have atuin installed on

Re: Atuin replaces your existing shell history with a SQLite database

#12
post #6

What's it like with many shells/panes in multiplexers open? I often find my history from one or another either lost or not available across different ones.

I believe it’s a setting. You can choose to save history and either merge history on session exit or immediately.

At least it is a setting for zsh

Re: Atuin replaces your existing shell history with a SQLite database

#13
post #6

What's it like with many shells/panes in multiplexers open? I often find my history from one or another either lost or not available across different ones.

I believe it’s a setting. You can choose to save history and either merge history on session exit or immediately. At least it is a setting for zsh

You’d think this would be even more robust with a sqlish storage backend than the usual text files used for history.

Re: Atuin replaces your existing shell history with a SQLite database

#15

> Atuin replaces your existing shell history with a SQLite database How can that work. Nobody is going to pay any ransom for just a shell history, and there are ways to get it out of a SQLite database. Wouldn't it be simpler just to encrypt the original .bash_history?

I think the advantage of the sqlite database is that you retain more context for any given command (e.g. what the current working directory was, ...) in a structured way (it is a database after all).

That stored context can then be used to query the database (e.g. filter the history to only show commands that were executed in the cwd).

These queries are the point of using sqlite, not anything security as far as I can tell.

Re: Atuin replaces your existing shell history with a SQLite database

#16
I made a script that uses atuin to get previous commands related to your current command line - latest commands ran in the same session, in the same directory, in other sessions, latest commands for the same executable etc. then feeds it into GPT and streams the replies to fzf so you can choose the best autocompletion (or it can fix problems in the line you've written already as well). On Wezterm and Kitty it can also get the terminal screen contents error messages and so. Because of the streaming reply the first autocomplete line is ready quite soon after the keyboard shortcut is pressed.

Have been putting off pushing it to Github, think I'm gonna do that today.

Re: Atuin replaces your existing shell history with a SQLite database

#17

I made a script that uses atuin to get previous commands related to your current command line - latest commands ran in the same session, in the same directory, in other sessions, latest commands for the same executable etc. then feeds it into GPT and streams the replies to fzf so you can choose the best autocompletion (or it can fix problems in the line you've written already as well). On Wezterm and Kitty it can als…

Please link, thanks!

Re: Atuin replaces your existing shell history with a SQLite database

#18
post #6

What's it like with many shells/panes in multiplexers open? I often find my history from one or another either lost or not available across different ones.

With atuin, it's available immediately on other local session (panes, windows, tabs etc). There's also remote sync, so after some configurable amount of time, it's even available on other devices.

Re: Atuin replaces your existing shell history with a SQLite database

#19
post #6

What's it like with many shells/panes in multiplexers open? I often find my history from one or another either lost or not available across different ones.

With atuin, it's available immediately on other local session (panes, windows, tabs etc). There's also remote sync, so after some configurable amount of time, it's even available on other devices.

+ if you don’t like this, you can have it filter by session by default!

Re: Atuin replaces your existing shell history with a SQLite database

#20

But at what cost?

It's FOSS, with optional free service to host your history (encrypted with local key), I think there's a paid option above a free tier You can also host your own backend

There's currently no paid option. Obviously one should assume such a free service can't be sustainable so you'd be correct to think we should have one.

Currently we rely on Github sponsors as well as our own additional funding

Post reply on HN