ssh config completion always ending with '^M'

Hi,

Over the past years, I have been saving my ssh entries in /home/xxx/.ssh/config .
For example with an entry like this:


Host surf-ibron-test
HostName xxx.xx.xx.xx
User root

You get auto completion by typing ‘surf’ and then .
The annoying thing is that the auto completion always adds these characters: ‘^M’.


koen@localhost ~ $ ssh surf-ibron-test^M

I think everyone has this annoyance since my setup is otherwise pretty default.

I do not see it. Are you sure your file does not have DOS end of line?

Cool. Yea it did. I changed the encoding to ‘unix’ and it’s fixed now. Thanks!

https://i.ibb.co/Cn1c26V/Screenshot-20200903-144307.png
https://pasteboard.co/JpmZm5C.pnghttps://pasteboard.co/JpmZm5C.png