Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: _nm
- X-seq: zsh-workers 33927
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: Zsh Hackers' List <zsh-workers@xxxxxxx>
- Subject: PATCH: _nm
- Date: Mon, 08 Dec 2014 09:49:07 +0000
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Organization: Samsung Cambridge Solution Centre
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]'
Messages sorted by:
Reverse Date,
Date,
Thread,
Author