From 3272bdce987a3e5d5448688529ccb8290e148a67 Mon Sep 17 00:00:00 2001 From: Matthew Martin Date: Fri, 11 Dec 2015 11:51:09 +0100 Subject: 37383: add completion type for object files --- Completion/Unix/Type/_object_files | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Completion/Unix/Type/_object_files (limited to 'Completion/Unix/Type/_object_files') 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,)' -- cgit 1.4.1