Atuin streamlines command retrieval by storing your shell history in an SQLite database, enabling fast searches and execution of previous commands.
Link to Atuin.