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

Re: strange completion



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