ctrl+r for reverse searching of previous command
add a "# tags" at any commands end to use above for future.
so lets say you have a ssh into multiple servers
$ ssh -Uasfd host1 # server1
$ ssh -Uaiouhqe host2 # server2
then later, ctrl+r -> and type ver1