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

zsh ssh host completion on OS X



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