atuin icon indicating copy to clipboard operation
atuin copied to clipboard

Add history expire option.

Open gary-ruizhang opened this issue 1 year ago • 2 comments

Auto clean command history which timestamp older than a config option. Currently I use the following sql to delete command history older than three months.

delete from history where timestamp < unixepoch('now', '-3 month') * 1000000000;

gary-ruizhang avatar Sep 15 '23 02:09 gary-ruizhang

Hey! We could look into getting this sorted, just please be aware that by running that SQL history sync will not work for you. Deletion has to go through Atuin's delete interface

ellie avatar Sep 15 '23 06:09 ellie