Subject: [PATCH] New bibtex completion (very minimal).
From: Daniel Shahaf <[email-masked]>
To: [email-masked]
Date: Mon, 18 Jan 2016 02:35:35 +0000
List-Id: Zsh Workers List <zsh-workers.zsh.org>

---
 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