-
-
Notifications
You must be signed in to change notification settings - Fork 677
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update ssh.completion.sh to be case-insensitive #645
Conversation
Also find 'host myhost' and 'HOST myhost' in ssh-config
This is a commit to solve my own problem #644 |
Changed to also read 'hostname' in different cases (but not read HashKnownHosts, HostbasedAcceptedAlgorithms, HostbasedAuthentication or HostKeyAlgorithms like it did before).
|
Version 4. Accept Host-line with whitespaces in front. And multiple aliases - also = For Hostname is respects different cases, and also includes IP-addresses.
I really didn't know Host could be indented. But I've confirmed that now - so I have adjusted for that. Have tried many different syntaxes in my own ssh-config now, and also confirmed it will suggest IP-adresses from HostName-lines. |
Trim whitespaces to not produce empty elements
Better version
Further improvements. This will respect the usage of = as separator, and also use of whitespaces before and/or after =.
Do you have an explanation on 551f282? |
I added = as a possible separator |
As far as I tried, |
You are right. This last commit should be abandoned. |
Remove = as host separator. I misunderstood.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you
Thanks! |
Also find 'host myhost' and 'HOST myhost' in ssh-config