Directory specific shell history

July 1, 2023

I have started a project in Python, which I'm not particularly familiar with. I thought it would be useful to include in the git repo relevant shell commands to remember what I've done, and thought it would be useful to have shell history but limited to a specific directory.

Turns out this is trivial with atuin, which records your shell history to a sqlite database and provides additional context.

Assuming you're in the directory you want to check your history for:

$ atuin search --cwd $(pwd) term
← Home