I push every unique command that I type into a database and bind Ctrl-R to peco querying the 10k commands. I'm amazed it did not occur to me earlier. All of my systems have access to the same shared history, which greatly simplifies multi window and multi computer operations.