zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: _nm
@ 2014-12-08  9:49 Peter Stephenson
  0 siblings, 0 replies; only message in thread
From: Peter Stephenson @ 2014-12-08  9:49 UTC (permalink / raw)
  To: Zsh Hackers' List

A couple of miinor things: complete .elf files, and for some reason it
didn't allow you to search through directories, so fix that.

pws

diff --git a/Completion/Unix/Command/_nm b/Completion/Unix/Command/_nm
index 6c95a0d..7f395d6 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]'


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-12-08  9:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-08  9:49 PATCH: _nm Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).