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

Re: help with command completion



>>> "SZ" == Shao Zhang <shao@xxxxxxxxxx> writes:

[...]

 SZ> 	HOSTS=(juggler.cse.unsw.edu.au haydn.cse.unsw.edu.au godzilla)
 SZ> 	compstyle '*' telnet $HOSTS

Please try :

        compstyle '*:telnet:*:hosts' hosts $HOST

for the more general case you may want

        compstyle '*:hosts' hosts $HOST

so that it work for ftp, rlogin, etc. too.

Note that `compstyle' will be obsoleted by `zstyle', 
so prefer the later if you have it.

[...]

-- 
Alexandre Duret-Lutz




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