nvbn / thefuck

Magnificent app which corrects your previous console command.
MIT License
83.75k stars 3.41k forks source link

Added basic support for Atuin #1371

Closed StandingPadAnimations closed 1 year ago

StandingPadAnimations commented 1 year ago

Atuin is shell history on steriods and is commonly used as an enhancement of the existing shell history. Unlike Bash or Zsh, Atuin uses an SQLite database to store the command history.

The nice thing about this however is that this makes Atuin shell agnostic, so all we've done is add a basic check in the generic shell class to check to see if the user provided a path to the Atuin database. If so, then we check the database instead of the default location.

Right now this system has an issue where it'll reconnect to the database multiple times, which may cause performance issues. The point however is that this works, and that we can search the Atuin database.

StandingPadAnimations commented 1 year ago

Problem is that (as far as I know) Atuin doesn't provide a way to export commands to shell history

StandingPadAnimations commented 1 year ago

Ok turns out Atuin already exports to the shell history, I'll close this now