about summary refs log tree commit diff
path: root/Completion/Unix/Type/_object_files
diff options
context:
space:
mode:
authorMatthew Martin <phy1729@gmail.com>2015-12-11 11:51:09 +0100
committerOliver Kiddle <opk@zsh.org>2015-12-11 11:51:09 +0100
commit3272bdce987a3e5d5448688529ccb8290e148a67 (patch)
treeda522e52027805c1f709c75e84633e89676c9cb4 /Completion/Unix/Type/_object_files
parente5dddecc159e7a7e54da3292c132662e1398eeac (diff)
downloadzsh-3272bdce987a3e5d5448688529ccb8290e148a67.tar.gz
zsh-3272bdce987a3e5d5448688529ccb8290e148a67.tar.xz
zsh-3272bdce987a3e5d5448688529ccb8290e148a67.zip
37383: add completion type for object files
Diffstat (limited to 'Completion/Unix/Type/_object_files')
-rw-r--r--Completion/Unix/Type/_object_files11
1 files changed, 11 insertions, 0 deletions
diff --git a/Completion/Unix/Type/_object_files b/Completion/Unix/Type/_object_files
new file mode 100644
index 000000000..31a13aefc
--- /dev/null
+++ b/Completion/Unix/Type/_object_files
@@ -0,0 +1,11 @@
+#autoload
+
+local expl
+
+_description files expl 'object file'
+
+__object_file() {
+  [[ -x $REPLY || $REPLY = *.([ao]|so|elf)(.<->)## || $REPLY = (core*|*.core) ]]
+}
+
+_files -g '*(-.e,__object_file,)'