thiagowfx's avatar

Β¬ just serendipity πŸ€ (not just serendipity)

Atuin: delete history entries

β€’ 77 words β€’ 1 min β€’ updated

Deleting, scrubbing, redacting old shell history entries is now easier than ever, thanks to atuin.

shell
% atuin search '^aws_login_headless' --delete
deleting 019ad59e973b7c139c4a1d67fe2155be
deleting 019ad59e973b7c139c4a1d40a0da15f1

First do the search without --delete, and then re-run the command with --delete if the output is what you expect.

You would want to do so in these two scenarios:

  • prevent irrelevant entries from showing up in C-r (history search), reducing clutter
  • delete sensitive entries e.g. passwords (docker login --password {foo})

Previously.