SF.net SVN: gar:[25952] csw/mgar/pkg/zsh/trunk/files/_mgar
opk at users.sourceforge.net
opk at users.sourceforge.net
Thu Sep 22 11:57:28 CEST 2016
Revision: 25952
http://sourceforge.net/p/gar/code/25952
Author: opk
Date: 2016-09-22 09:57:27 +0000 (Thu, 22 Sep 2016)
Log Message:
-----------
zsh: update mgar completion
Modified Paths:
--------------
csw/mgar/pkg/zsh/trunk/files/_mgar
Modified: csw/mgar/pkg/zsh/trunk/files/_mgar
===================================================================
--- csw/mgar/pkg/zsh/trunk/files/_mgar 2016-09-21 12:40:46 UTC (rev 25951)
+++ csw/mgar/pkg/zsh/trunk/files/_mgar 2016-09-22 09:57:27 UTC (rev 25952)
@@ -2,7 +2,7 @@
local curcontext="$curcontext" ret=1
local subcmd
-local -a cmds
+local -a cmds expl
if (( CURRENT == 2 )); then
cmds=(
@@ -10,10 +10,11 @@
install:install\ files\ to\ staging\ directory
makepatch:create\ a\ patch\ for\ outstanding\ changes
check-prereqs checksum test patch
- ${${(M)${(f)"$(_call_program commands ${words[1]} help)"}:# *}// (#b)([a-z-]##)[^A-Z]##(?)/$match[1]:${match[2]:l}}
+ ${${(M)${(f)"$(_call_program commands ${words[1]} help)"}:# *}/ (#b)([a-z-]##)[^A-U]##(?)/$match[1]:${match[2]:l}}
)
_describe 'mgar command' cmds && ret=0
+ [[ -prefix - ]] && _wanted options expl option compadd - -V && ret=0
else
shift words
(( CURRENT-- ))
@@ -33,6 +34,9 @@
up)
_arguments '--all' && ret=0
;;
+ newpkg)
+ _arguments '1:new package name' '2:version number' && ret=0
+ ;;
*)
_default && ret=0
;;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list