-
-
Notifications
You must be signed in to change notification settings - Fork 25.6k
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
SSH autocompletion issue #2414
Comments
Your first issue is just a missing feature, feel free to implement it yourself. Your second issue is disturbing, but there is an easy workaround: just complete the alias of the host. Here it is ssh ho[TAB] and it will complete to: ssh home |
…so required for system known hosts, partially fixes ohmyzsh#2414
So I found the bug causing your second issue and submitted a fix: #2489 Fell free to comment. Maybe the colon and port number should also be removed? About your first issue: this behavior indicates that the host is not in your |
Sorry for the delay in the response. About the first issue: I think you are right. If I can reproduce it again I will re-open it. About the second issue: The pull request #2489 does fix the brackets problem, and indeed, it should remove the port number since it is wrong. BTW it would be great if it would add "-p PORT" (for ssh) and "-P PORT" (for scp) if port appears in the know_files entry :) |
Thanks for the update. Good to know the patch works. I will update it to also remove the port number, but I am afraid that adding the |
Thanks a lot! |
@ibc OK now #2489 properly trims the port number For info, I tried to implement your feature: replacing In the end, as soon as you are going to connect multiple times to a specific host, I strongly recommend that you create an alias in your |
Yes, I already make extensive usage of .ssh/config :) Let me close the issue as it is 100% fixed. Thanks a lot. |
OSX 10.9.1 and zsh 5.0.4 installed with brew. Also installed zsh-completions and, of course, oh-my-zsh which is properly working, except this issue:
I've previously wrote "ssh myhost.com" to connect to my server. Then, if later I write "ssh myhost.mydoma" and press TAB, I do NOT get autocompletion. Using Bash I get autocompletion.
Second issue. If I add a host entry in ".ssh/config":
and then I type (using zsh) "ssh myh" and press TAB I get something ugly and invalid:
Again, it properly works if I switch to Bash.
The text was updated successfully, but these errors were encountered: