From: Peter Stephenson <p.stephenson@samsung.com>
To: Zsh Hackers' List <zsh-workers@zsh.org>
Subject: PATCH: _nm
Date: Mon, 08 Dec 2014 09:49:07 +0000 [thread overview]
Message-ID: <20141208094907.1dd21bea@pwslap01u.europe.root.pri> (raw)
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]'
reply other threads:[~2014-12-08 9:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141208094907.1dd21bea@pwslap01u.europe.root.pri \
--to=p.stephenson@samsung.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).