[zsh] completion system
am 07.11.2007 12:20:10 von unknownPost removed (X-No-Archive: yes)
Post removed (X-No-Archive: yes)
in message
wrote jimmij ...
> I have a program which takes as an argument file with extention "ext".
> How can I tell zsh that after typing this command completion should take
> into account only files with that extention?
I think you are looking for 'list-expand' & 'list-choice' commands,
which would behave the same if the input is like 'ls *ext' followed
by pressing the respective bound key(s).
- parv
--
Undo WhereElse from address for email.
2007-11-07, 12:20(+01), jimmij:
> I have a program which takes as an argument file with extention "ext".
> How can I tell zsh that after typing this command completion should take
> into account only files with that extention?
zstyle ':completion:*:*:your-cmd:*' file-patterns '*.ext'
--
Stéphane