about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2014-12-08 09:53:10 +0000
committerPeter Stephenson <pws@zsh.org>2014-12-08 09:53:10 +0000
commit53e44daeba8481858cded683a780841085f36988 (patch)
treebb607df335463ebbc170b777ea025124ef75fc4e /Completion
parenta4799145da74a89ae056bc8355fcc8319cce8a9c (diff)
downloadzsh-53e44daeba8481858cded683a780841085f36988.tar.gz
zsh-53e44daeba8481858cded683a780841085f36988.tar.xz
zsh-53e44daeba8481858cded683a780841085f36988.zip
33927: nm completion improvements
Complete .elf files.

Allow directory searches.
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Command/_nm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_nm b/Completion/Unix/Command/_nm
index 6c95a0d85..7f395d614 100644
--- a/Completion/Unix/Command/_nm
+++ b/Completion/Unix/Command/_nm
@@ -3,10 +3,10 @@
 local args files
 
 _nm_object_file() {
-  [[ -x $REPLY || $REPLY = *.([ao]|so) ]]
+  [[ -x $REPLY || $REPLY = *.([ao]|so|elf) ]]
 }
 
-files="*:object file:_path_files -g '*(-.e:_nm_object_file:)'"
+files="*:object file:_files -g '*(-.e:_nm_object_file:)'"
 args=(
   '(-A -o --print-file-name)'{-A,-o,--print-file-name}'[print name of input file on each line]'
   '(--demangle)-C[decode symbol names]'