You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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. 👍🏼
The text was updated successfully, but these errors were encountered:
$HISTFILE (~/.zsh_history), oldest on top (as if ordered by timestamp ASC):
.local/share/atuin/history.db, with ORDER BY timestamp DESC, showing the oldest zsh entries on top as if they were the newest, since timestamps are assigned in reverse.
The timestamps are created as now - seconds(counter), counting upwards while iterating through the history file. This way, the top items are placed close to now, while the bottom items are placed "the longest ago".
I've just installed
atuin
in my Ubuntu 20.04, ZSH 5.8 pc using the deb package in Releases.Running
atuin import zsh
(orauto
) successfully imports my command history, but the imported commands then show up in reverse order when searching it throughatuin
. 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. 👍🏼The text was updated successfully, but these errors were encountered: