News for hackers. Stuff that matters.
Re:I quit my job to work full time on my open source project by sireat on Wednesday January 10, 2024 @03:14AM (#38937588)
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.

Re:I quit my job to work full time on my open source project by samlanning on Wednesday January 10, 2024 @03:41AM (#38937807)
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

Re:I quit my job to work full time on my open source project by ellieh on Wednesday January 10, 2024 @03:53AM (#38937899)
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)

Re:I quit my job to work full time on my open source project by zipperhead on Wednesday January 10, 2024 @11:28AM (#38940334)
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!