Skip to content
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

Closed
binary132 opened this issue Nov 29, 2013 · 7 comments
Closed

.ssh/config host autocompletion fails #2288

binary132 opened this issue Nov 29, 2013 · 7 comments

Comments

@binary132
Copy link

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.

@mcornella
Copy link
Member

@binary132, does this still happen with the current oh-my-zsh?

@paranojik
Copy link

Same happens to me with latest version of zsh.

@robbyrussell
Copy link
Member

@paranojik Care to submit a PR?

@dpatz
Copy link

dpatz commented Jan 17, 2018

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)

@dpatz
Copy link

dpatz commented Sep 5, 2018

I finally managed to fix this. Add this to the bottom of your .zshrc file: https://superuser.com/a/1354860/37195

@wlonglade
Copy link

In my case it was just a line endind issue.
My ~/.ssh/config file contains "CRLF" (Windows style) lines ending. Switch to "LF" (Linux/Mac style) fixes the issue

@LukeTheProgrammer
Copy link

In my case it was just a line endind issue. My ~/.ssh/config file contains "CRLF" (Windows style) lines ending. Switch to "LF" (Linux/Mac style) fixes the issue

Well... I won't get the hours back, but this is the solution. Thank you!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants