atuinsh/atuin

`atuin import zsh` imports history in reverse order?

Open

#178 opened on Sep 1, 2021

View on GitHub
 (4 comments) (4 reactions) (0 assignees)Rust (29,714 stars) (840 forks)batch import
bughelp wantedshell-zsh

Description

I've just installed atuin in my Ubuntu 20.04, ZSH 5.8 pc using the deb package in Releases.

Running atuin import zsh (or auto) successfully imports my command history, but the imported commands then show up in reverse order when searching it through atuin. That makes no sense... Commands saved after the import and correctly appended to the history file appear in the right order.

Is it a timestamping issue? My history file had no timestamp or extra info, just the plain commands. I noted that atuin adds timestamps to ZSH history file.

For now, I've just reverted the history file with tac before importing and got it done. 👍🏼

Contributor guide