Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh ssh host completion on OS X



Wataru Kagawa wrote a really cool OSX-specific and customizable user and
host completion for OS X.

http://murl.info/15313



Yi Qiang wrote:
> Hi,
> I've always loved the ssh host completion feature in zsh I found on some
> website.  I have this in my .zshrc:
>
>      61 # complete ssh hosts
>      62 local _myhosts
>      63 _myhosts=( ${${${${(f)"$(<$HOME/.ssh/known_hosts)"}:#[0-9]*}%%\
> *}%%,*} )
>      64 zstyle ':completion:*' hosts $_myhosts
>
> It seems to work fine on my linux box, but on OSX hitting tab doesn't do
> anything.
>
> zsh 4.2.3 (powerpc-apple-darwin8.0)
>
>
> Any ideas?
>
> Yi
>



Messages sorted by: Reverse Date, Date, Thread, Author