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

Re: zsh completion of just latex files



* zzapper wrote:
> Hi,
Hi, 
> In a directory full of latex files *.tex and all the *.toc *.dvi etc I
> want a widget to only complete *.tex  file eg
 
> vtex some_tex_file.tex

> I would normally write a function for this, but I guess I should be
> thinking zsh.
 
> How should I do this?

#v+
compctl -g '*.tex*' + -g '*(-/)' {la,v}tex pdflatex
#v-

I discovered this line in my ~/.zshrc and it works well, well enough for
me, maybe also for you.

For further information you have to RTFM zshcompctl(1).

> zzapper (vim, cygwin, wiki & zsh)

Sartoo

-- 
Mitleid gibt's umsonst mein Freund  -
Neid, muss man sich verdienen.
  -- BO Nr.1



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