Running atuin without a session

I want to scan for secrets in the background, using atuin history list | gitleaks stdin.

But I get this error:

ERROR: Failed to find $ATUIN_SESSION in the environment. Check that you have correctly set up your shell.

How can I avoid this error and have history list work?

ATUIN_SESSION is set by our shell plugin, so either run the command in an interactive environment or do something like this

ATUIN_SESSION=$(atuin uuid) atuin history list | gitleaks stdin
2 Likes