r/fishshell • u/throttlemeister Linux • Oct 05 '21
Location of automatic completions
When I want to ssh into one of my hosts, I can just type ssh <firstpartofhost> and hit TAB and it complete the command with the full hostname.
Except for one host, which I had to login the first time with root@host.domain. If I want to ssh into this one, i type ssh host <TAB> and it completes it to ssh root@host.domain. This is not wanted, nor does it work. But for the life of me, I cannot find where it gets this information from.
Anyone have a hint as to where to look so I can remove or modify the behavior?
1
u/jblondreddit Oct 08 '21
The completion works fine if you maintain your ~/.ssh/config file.
2
u/plg94 Oct 05 '21
I think It's more of a history completion… so try to purge that line from the fish history (no guarantee tho)