Full replace zsh HISTFILE with atuin

I have been using atuin for almost 6 months now and have loved it. I’m recommending it to co-workers.

tl;dr - Is it possible to disable zsh HISTFILE and just use atuin? Is it possible to replicate zsh-autosuggestion ghost text into atuin?

I have been thinking about how I could fully remove the use of the native zsh HISTFILE and just use the atuin for my shell history, its fast, efficient and very convenient (I can imagine storing the history in sqlite is faster than a text file too). I wanted to get a feel for if this is a reasonable thing to do or what implications it might have? So far the only part of the zsh history I still use is a plugin called zsh-autosuggestions because it can be slightly more convenient than opening the atuin TUI window manually and searching. I like working on rust projects and would be willing to contribute the autosuggestions if it seems like a possible feature or a welcome addition

Thank you for an awesome project!

1 Like

Atuin already sets itself up as a zsh-autosuggestion strategy, so you’re probably already using it :slight_smile: : Integrations - Atuin Docs

The exact settings it uses are here: atuin/crates/atuin/src/shell/atuin.zsh at 88e4b92dde0123d3f85a9b73d3df1de923c5e485 · atuinsh/atuin · GitHub

I’m not sure how much work is needed to fully disable zsh’s HISTFILE, it might be as simple as unsetting the HISTFILE env variable, but I suspect it will break other tools that query your shell history. It shouldn’t break atuin though after the initial import.

1 Like

Incredible! Thank you for the reply, I’m going to look into this when I’m back at my computer and will report back with updates!

1 Like