about summary refs log tree commit diff
path: root/Completion/Unix/Command/_bibtex
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2016-01-18 02:35:35 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2016-01-18 02:39:52 +0000
commitc380c9394a3263d1e7c5b6f688dfd1b305b3600e (patch)
tree20544270bd83cb97bb7d8af597fc6999b6567a9c /Completion/Unix/Command/_bibtex
parentabe997e5e03aaa3761c764a095fcd95d8e89a551 (diff)
downloadzsh-c380c9394a3263d1e7c5b6f688dfd1b305b3600e.tar.gz
zsh-c380c9394a3263d1e7c5b6f688dfd1b305b3600e.tar.xz
zsh-c380c9394a3263d1e7c5b6f688dfd1b305b3600e.zip
37663: New bibtex completion (very minimal).
Diffstat (limited to 'Completion/Unix/Command/_bibtex')
-rw-r--r--Completion/Unix/Command/_bibtex5
1 files changed, 5 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_bibtex b/Completion/Unix/Command/_bibtex
new file mode 100644
index 000000000..8db38a244
--- /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)'