There are a handful of commands which I use Ctrl+R to lookup.
In some cases it makes sense to put them into aliases/shell scripts, however for commands that typically need some adjusting - this isn't practical (involved ssh/git commands for example).
Is there a way to load in commands on top of regular history (which may have a limited length). So I can clear history, keeping useful commands always accessible from Ctrl+R search?
Is there a function to prepend history or load in history from a separate file that is never written to?
I realize this may seem obscure, however very occasionally I loose my history (it becomes corrupt or gets overwritten somehow), and I end up loosing handy commands I only use occasionally. While I can keep a backup, I'd rather be clearing history every so often - and keeping handy commands in a separate file.