diff options
author | Matthew Martin <phy1729@gmail.com> | 2015-12-11 11:51:09 +0100 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2015-12-11 11:51:09 +0100 |
commit | 3272bdce987a3e5d5448688529ccb8290e148a67 (patch) | |
tree | da522e52027805c1f709c75e84633e89676c9cb4 /Completion/Unix/Type/_object_files | |
parent | e5dddecc159e7a7e54da3292c132662e1398eeac (diff) | |
download | zsh-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_files | 11 |
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,)' |