mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-19 11:31:26 +01:00
37438: C/D/C/_aptitude: Also parse -h output of aptitude 0.7.5 and later
This commit is contained in:
parent
c054786a49
commit
5f3e47ca5e
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2015-12-27 Axel Beckert <abe@deuxchevaux.org>
|
||||
|
||||
* 37438: Completion/Debian/Command/_aptitude: Also parse --help/-h
|
||||
output of aptitude 0.7.5 and later.
|
||||
|
||||
2015-12-26 Axel Beckert <abe@deuxchevaux.org>
|
||||
|
||||
* 37436: Felipe Sateler: Completion/Debian/Command/_apt:
|
||||
|
|
|
@ -80,7 +80,7 @@ _arguments -C \
|
|||
|
||||
case $state in
|
||||
cmds)
|
||||
cmds=( ${${(M)${(f)"$(LC_ALL=C _call_program commands aptitude -h 2>/dev/null)"}:#* - *}/(#b) (*[^ ]) #- (*)/$match[1]:$match[2]:l})
|
||||
cmds=( ${${(M)${(f)"$(LC_ALL=C _call_program commands aptitude -h 2>/dev/null)"}:# [^- ][^ ]## *}/(#b) ([^ ]##) ##(- )#([^- ]*)/$match[1]:$match[3]:l})
|
||||
|
||||
_describe -t commands 'aptitude command' cmds && ret=0
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue