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

[PATCH] New bibtex completion (very minimal).



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



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