From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7573 invoked by alias); 18 Jan 2016 02:35:41 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 37663 Received: (qmail 3562 invoked from network); 18 Jan 2016 02:35:40 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 Date: Mon, 18 Jan 2016 02:35:35 +0000 From: Daniel Shahaf To: zsh-workers@zsh.org Subject: [PATCH] New bibtex completion (very minimal). Message-ID: <20160118023535.GA12663@tarsus.local2> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) --- Completion/Unix/Command/_bibtex | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Completion/Unix/Command/_bibtex diff --git a/Completion/Unix/Command/_bibtex b/Completion/Unix/Command/_bibtex new file mode 100644 index 0000000..fb1ba61 --- /dev/null +++ b/Completion/Unix/Command/_bibtex @@ -0,0 +1,5 @@ +#compdef bibtex + +# bibtex only works when the *.aux file exists, but complete the *.tex file in +# case it hasn't been compiled yet. +_files -g '*.(aux|tex)(:r)' -- 2.1.4