Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh ssh host completion on OS X
- X-seq: zsh-users 11004
- From: "William Scott" <wgscott@xxxxxxxxxxxxxxxxxx>
- To: "Yi Qiang" <yqiang@xxxxxxxxx>
- Subject: Re: zsh ssh host completion on OS X
- Date: Fri, 17 Nov 2006 15:06:00 -0800 (PST)
- Cc: zsh-users@xxxxxxxxxx
- Importance: Normal
- In-reply-to: <3af8969a0611171452gba0107dta8182fbd743920c7@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <3af8969a0611171452gba0107dta8182fbd743920c7@xxxxxxxxxxxxxx>
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