Hacker News new | ask | show | jobs
by foobarian 1498 days ago
I use a homerolled thing in .bashrc using plain text files. Regardless of implementation details, this kind of thing saved me vast amount of time over the years. Some requirements that I find the most useful:

- Session ID: assign session IDs so multiple shells don't get mixed up. Make customizable so it's easy to integrate with screen or tmux etc. On reboot, if session IDs are restored, the history can be recovered.

- Instant write: command typed in one shell should be available to search in a different shell right away

- Search order: reverse search should return commands for the current session first, but also make other sessions available