-
-
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/config host autocompletion fails #2288
Comments
@binary132, does this still happen with the current oh-my-zsh? |
Same happens to me with latest version of zsh. |
@paranojik Care to submit a PR? |
I just did a clean install on my new Mac and I'm still having this issue. Was anybody ever able to resolve this? (Happens on both iTerm and Terminal) |
I finally managed to fix this. Add this to the bottom of your .zshrc file: https://superuser.com/a/1354860/37195 |
In my case it was just a line endind issue. |
Well... I won't get the hours back, but this is the solution. Thank you!! |
For every Host entry in my ~/.ssh/config file, when I do a tabbed autocompletion like the following:
(let's say the entry is "myhost")
ssh myh
The autocompletion becomes
ssh myhost$'\r'
This does not work as it is not a known host in my ~/.ssh/config.
The text was updated successfully, but these errors were encountered: