Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • I tried adding this to my .bashrc without success. I also commented the code from that function with the same result. I will check if there is something in the ssh bash completion definition file that may cause this. Commented Sep 7, 2018 at 10:12
  • Turns out I needed to do the exact oposite in my case. The SSH completion script returns a list of remote files. Without the colon to be listed as word break character a values from COMPREPLY will be taken as whole word, trimming the hostname. Commented Sep 7, 2018 at 10:25