I recently changed the domain of two of my servers from
mars.mdorst.net. Now when I go to ssh, one of them auto completes as expected, and the other does not.
$ ssh michael@o<Tab>
$ ssh email@example.com
which is what I want. However, when I type
$ ssh michael@c<Tab>
it autocompletes to
$ ssh firstname.lastname@example.org
and places the cursor after the m.
My best guess was that it knew that I had typed both of the following
$ ssh email@example.com $ ssh firstname.lastname@example.org
before, and wanted to know which one. Extremely clever! Except that I don't want that behavior, so I went back through my
.zsh_history and deleted all occurrences of
curiosity.mdorst.net, and the problem persists!
This is extremely confusing to me, because I have also done
opportunity.mdorst.net before, but this doesn't happen when I type
o<Tab>, only when I type
How can I make it autocomplete to the correct domain?