mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-20 11:51:24 +01:00
29915: new nm completion
This commit is contained in:
parent
b0602dc5b4
commit
d47847c5f5
3 changed files with 36 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2011-11-24 Peter Stephenson <pws@csr.com>
|
||||||
|
|
||||||
|
* 29915: Completion/Unix/Command/.distfiles,
|
||||||
|
Completion/Unix/Command/_nm: new nm completion.
|
||||||
|
|
||||||
2011-11-23 Peter Stephenson <pws@csr.com>
|
2011-11-23 Peter Stephenson <pws@csr.com>
|
||||||
|
|
||||||
* Ignacy Gawędzki: 29912: Completion/Unix/Command/_ssh: add "--"
|
* Ignacy Gawędzki: 29912: Completion/Unix/Command/_ssh: add "--"
|
||||||
|
@ -15604,5 +15609,5 @@
|
||||||
|
|
||||||
*****************************************************
|
*****************************************************
|
||||||
* This is used by the shell to define $ZSH_PATCHLEVEL
|
* This is used by the shell to define $ZSH_PATCHLEVEL
|
||||||
* $Revision: 1.5504 $
|
* $Revision: 1.5505 $
|
||||||
*****************************************************
|
*****************************************************
|
||||||
|
|
|
@ -141,6 +141,7 @@ _mysqldiff
|
||||||
_ncftp
|
_ncftp
|
||||||
_netcat
|
_netcat
|
||||||
_nice
|
_nice
|
||||||
|
_nm
|
||||||
_nmap
|
_nmap
|
||||||
_notmuch
|
_notmuch
|
||||||
_npm
|
_npm
|
||||||
|
|
29
Completion/Unix/Command/_nm
Normal file
29
Completion/Unix/Command/_nm
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
#compdef nm
|
||||||
|
|
||||||
|
# This is a stub. It's main reason for existence is to offer
|
||||||
|
# object files with nm. Feel free to extend it. If you do, remove
|
||||||
|
# this comment.
|
||||||
|
|
||||||
|
local state context line expl
|
||||||
|
local -A opt_args
|
||||||
|
local -a args
|
||||||
|
integer ret=1
|
||||||
|
|
||||||
|
if _pick_variant gnu='Free Soft' unix --version; then
|
||||||
|
args+=(-s --)
|
||||||
|
fi
|
||||||
|
args+=('*:file:->file')
|
||||||
|
|
||||||
|
_arguments "$args[@]" && ret=0
|
||||||
|
|
||||||
|
case $state in
|
||||||
|
(file)
|
||||||
|
_alternative \
|
||||||
|
"object-files:object file:_path_files -g '*.o'" \
|
||||||
|
"executable-files:executable file:_path_files -g '*(*)'" \
|
||||||
|
"dynamic-libraries:dynamic library:_path_files -g '*.so'" \
|
||||||
|
"static-libraries:static library:_path_files -g '*.a'" && ret=0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
return ret
|
Loading…
Reference in a new issue