Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: strange completion
- X-seq: zsh-workers 49
- From: bas@xxxxxxxxxxx (Bas V. de Bakker)
- To: csdayton@xxxxxxxxxxxxxxxxxxx
- Subject: Re: strange completion
- Date: Mon, 29 May 1995 07:52:36 +0200
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: <199505290510.AAA15728@xxxxxxxxxxxxxxxxxxxxx> (message from Soren Dayton on Mon, 29 May 95 00:10:20 -0500)
Soren Dayton <csdayton@xxxxxxxxxxxxxxxxxxx> writes:
> This makes no sense to me...
> compctl -x 'C[-1,-*d*]' -g '*.gz *.Z *.z' -g '*(-/)' -- gzip
> here, I am in a directory with a directory and a tar.gz file
> gzip -d <tab>
> will complete to
> gzip -d <directory>
> Am I misunderstanding this? I want this to complete to .gz files.
The two -g flags are used simultaneously, expanding to one set of
completions. So if the directory is before the .gz file
alphabetically, it will complete first. To use the second flag only
if the first one does not generate any completions, put a '+' between
them.
Hope this helps,
Bas.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author