Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Same here. Also included the host, timestamp, user, and current directory. Unifying history across multiple machines is very pleasant when you know you did something, but don’t even remember where you did it.


What tool do you use for that?


I bet it was “bash” (with sed and rsync)


You forgot jq. The shell history is stored as json lines. Makes for easy grepping too.


I mean how do you unify it? Is there a tool that will sync/unify the history for you?


There is - and was featured here a couple of times. atuin dot sh. But it uses sqlite under the hood afaik




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: