Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zsh ssh host completion on OS X
- X-seq: zsh-users 11003
- From: "Yi Qiang" <yqiang@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: zsh ssh host completion on OS X
- Date: Fri, 17 Nov 2006 14:52:26 -0800
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=UeJMW6V3ofxmzJLx+bcAtSr5kDkEZ+86+U74fL0GcTxNjcVkkUCVv2rOTqxchcEWGW1K9jCzGgzYqItoWmh+SUoN4UgDnAF4ByILUHrR5uleKcCMbJGLy2BWa9qDQbEb0QmSZ8xdu3lo8PRmJXdD7w+nDgeF1xpklRdkI0CIJ7A=
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
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