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

Re: strange completion



> >woodlawn% rm -rf .p
> >
> >This makes no sense to me...
> 
> I am sorry.  I just noticed somethign foolish.  this works fine
> 
> >compctl -x 'C[-1,-*d*]' -g '*.gz *.Z *.z' -g '*(-/)' -- gzip
> 
> This still does not work...

Try these.  This is from the compctl examples file.

# gzip files, but gzip -d only gzipped or compressed files
compctl -f -x 'R[-*d,^*]' -g '*.gz *.z *.Z' + -g '*(-/)' -- gzip
compctl -g '*.gz *.z *.Z' + -g '*(-/)' gunzip   # zcat if you use GNU
compctl -g '*.Z' + -g '*(-/)' uncompress zmore  # zcat if you don't use GNU


rc



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