I call this "mssh" (Matt's ssh).
It should remember that if I type:
I really mean
. But if I try
it should remember I wanted
See I use different usernames in different places. It should be smart enough to cache the user I use on different hosts. And perhaps ask if it hasn't cached one before.
Should be quite trivial to write.