by sireat · 2y ago · 0 comments
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.
You can even filter to commands for your current directory by just pressing Ctrl+R a few times
- command - directory - timestamp - duration - session ID - exit code - hostname
currently thinking of neat ways we can store extra things too (git remote, etc)
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!