1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-20 06:56:05 +02:00

33927: nm completion improvements

Complete .elf files.

Allow directory searches.
This commit is contained in:
Peter Stephenson 2014-12-08 09:53:10 +00:00
parent a4799145da
commit 53e44daeba
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,8 @@
2014-12-08 Peter Stephenson <p.stephenson@samsung.com>
* 33927: Completion/Unix/Command/_nm: .elf files and
directories.
* 33843: Completion/Unix/Type/_files: minor optimisation for
recursive-files.

View File

@ -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]'