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

Re: trying completion of varying data



To add to what Clint suggested ...

On May 31, 10:50pm, Andy Spiegl wrote:
}
} Looking at these working examples:
}  zstyle ':completion:*:*:mpg123:*' file-patterns \
}   '*.(mp3|MP3):mp3\ files *(-/):directories'
} 
}  zstyle ':completion:*:processes' command 'ps -au$USER'
} 
} I tried
}  zstyle ':completion:*:*:xvncviewer:*' command 'show.active.pcs'
}       (where show.active.pcs does the above)

Don't just look at the examples, look at the doc.  Not all contexts use
all styles.  In particular, the "command" style is only used to override
the default match-generating command for completions that already use
such a command; it won't magically cause an arbitrary completion to start
using a command to generate the matches.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



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