zsh-users
 help / color / mirror / code / Atom feed
* zsh ssh host completion on OS X
@ 2006-11-17 22:52 Yi Qiang
  2006-11-17 23:06 ` William Scott
  0 siblings, 1 reply; 6+ messages in thread
From: Yi Qiang @ 2006-11-17 22:52 UTC (permalink / raw)
  To: zsh-users

[-- Attachment #1: Type: text/plain, Size: 433 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 582 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-11-18  7:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-17 22:52 zsh ssh host completion on OS X Yi Qiang
2006-11-17 23:06 ` William Scott
2006-11-17 23:16   ` Yi Qiang
2006-11-18  0:33     ` Yi Qiang
2006-11-18  3:40       ` Bart Schaefer
2006-11-18  7:17         ` Yi Qiang

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).