Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh completion of just latex files
- X-seq: zsh-users 7587
- From: Sartoo <sartoo@xxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: zsh completion of just latex files
- Date: Wed, 23 Jun 2004 01:05:06 +0200
- In-reply-to: <idugd0hm8c8qo3opan6b12o3aohi3bnc5h@xxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <idugd0hm8c8qo3opan6b12o3aohi3bnc5h@xxxxxxx>
* 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