about summary refs log tree commit diff
path: root/Completion/Unix/Command/_readelf
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/Command/_readelf
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/Command/_readelf')
-rw-r--r--Completion/Unix/Command/_readelf6
1 files changed, 1 insertions, 5 deletions
diff --git a/Completion/Unix/Command/_readelf b/Completion/Unix/Command/_readelf
index 9312ea864..a474a8dc4 100644
--- a/Completion/Unix/Command/_readelf
+++ b/Completion/Unix/Command/_readelf
@@ -2,10 +2,6 @@
 
 local variant args sections
 
-_elf_file() {
-  [[ -x $REPLY || $REPLY = (core*|*.([ao]|so|elf)) ]]
-}
-
 sections=( .bss .data .dynamic .dynsym .got .interp .shstrtab .symtab .text )
 _pick_variant -r variant elftoolchain=elftoolchain elfutils=elfutils binutils --version
 
@@ -29,7 +25,7 @@ args=(
   '(-W --wide)'{-W,--wide}'[allow output width to exceed 80 characters]'
   '(- *)'{-H,--help}'[display help information]'
   '(- *)'{-v,--version}'[display version information]'
-  "*:elf file:_files -g '*(-.e:_elf_file:)'"
+  "*:elf file:_object_files"
 )
 
 case $variant in