Hacker News new | ask | show | jobs
by sireat 894 days ago
Does Atuin offer ability to save current path (with timestamp as a bonus) for the command as well?

Looking at OP it looks like it does " recording additional command context"

Often (meaning once every few months) I have to SSH to some less used machines and remember a few incantations where path and time is crucial.

In bash there is a hacky way to add current path and timestamp to history, but I've never gotten it to work exactly right. If you add timestamp then it seems to duplicate the timestamp when you repeat the command.

1 comments

Yes it does, both path and timestamp.

You can even filter to commands for your current directory by just pressing Ctrl+R a few times

so we store

- command - directory - timestamp - duration - session ID - exit code - hostname

currently thinking of neat ways we can store extra things too (git remote, etc)

I wonder if atuin could parse tags if given at the end of a command, after a # ?

sudo somecommand arg1 arg2 # admin mpv arg1 # media

I have work-related stuff that I'd love to be able to tag and then filter history based on that. Hmm now that I think of it, maybe it will just work like that anyway.

Love atuin btw, best of luck!