Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: _baz fixes
- X-seq: zsh-workers 21075
- From: Clint Adams <clint@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: PATCH: _baz fixes
- Date: Thu, 31 Mar 2005 08:37:03 -0500
- Mail-followup-to: zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
I'm told that baz 1.3 won't have the -A option to a bunch of commands.
The same alternatives can probably be used for _tla too.
Index: Completion/Unix/Command/_baz
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_baz,v
retrieving revision 1.3
diff -u -r1.3 _baz
--- Completion/Unix/Command/_baz 11 Mar 2005 01:11:48 -0000 1.3
+++ Completion/Unix/Command/_baz 31 Mar 2005 13:31:36 -0000
@@ -80,7 +80,7 @@
compset -P '*/'
archive=${IPREFIX%/*}
_description -V categories expl "${library:-}categories in $archive"
- compadd $suffix "$expl[@]" `$BAZ ${library:-}categories -A $archive`
+ compadd $suffix "$expl[@]" `$BAZ ${library:-}categories $archive`
elif [ -z $IPREFIX ]; then
local index=$(( words[(i)-A] + 1 ))
(( index < CURRENT )) || index=$(( words[(i)--archive] + 1 ))
@@ -88,7 +88,7 @@
if [ $archive ]; then
_description -V categories expl "${library:-}categories in $archive"
- compadd "$expl[@]" $suffix `$BAZ ${library:-}categories -A $archive`
+ compadd "$expl[@]" $suffix `$BAZ ${library:-}categories $archive`
fi
_baz_archives -S / ${library:+--library}
@@ -111,7 +111,7 @@
local category=${IPREFIX%--}
_description -V branches expl "${library:-}branches"
compadd $suffix "$expl[@]" \
- ${${(@)$($BAZ ${library:-}branches -A $archive $category)}##*--}
+ ${${(@)$($BAZ ${library:-}branches $archive/$category)}##*--}
fi
if [ $1 -gt 1 ] && [[ $IPREFIX = *-- ]] && [[ $PREFIX = *--* ]]; then
_baz_namespace_versions $(($1 - 1))
@@ -129,7 +129,7 @@
local branch=${IPREFIX%--}
_description -V versions expl "${library:-}versions"
compadd $suffix "$expl[@]" \
- ${${(@)$($BAZ ${library:-}versions -A $archive $branch)}##*--}
+ ${${(@)$($BAZ ${library:-}versions $archive/$branch)}##*--}
fi
if [ $1 -gt 1 ] && [[ $IPREFIX = *--*-- ]] && ([[ $IPREFIX = */*--*-- ]] \
|| [[ $PREFIX != */* ]]) && [[ $PREFIX = *--* ]]; then
@@ -146,22 +146,16 @@
_description -V revisions expl "${library:-}revisions"
local completions c
completions=(
- ${${(@)$($BAZ ${library:-}revisions -A $archive $version)}##*--}
+ ${${(@)$($BAZ ${library:-}revisions $archive/$version)}##*--}
)
(( exclude_library_revisions )) && \
- foreach c ($($BAZ library-revisions -A $archive $version)); do completions[(r)$c]=(); done
+ foreach c ($($BAZ library-revisions $archive/$version)); do completions[(r)$c]=(); done
compadd "$expl[@]" -a completions
fi
}
(( $+functions[_baz_config] )) ||
_baz_config () {
-
- # zsh 4.1.1+ is recommended; 4.0.6 gives the error below when doing
- # baz build-config e<TAB>
- # _path_files:322: no matches found: configs//e/.(/)
- # whereas 4.1.1 completes correctly
-
local configdir root ret=1 n expl
n=$opt_args[(i)(-d|--dir)]
@@ -192,7 +186,7 @@
if [[ $PREFIX != *--* ]]; then
_description -V categories expl "categories in $archive"
- compadd -q -S -- "$expl[@]" `$BAZ categories -A $archive`
+ compadd -q -S -- "$expl[@]" `$BAZ categories $archive`
else
_baz_namespace_branches 3
fi
Messages sorted by:
Reverse Date,
Date,
Thread,
Author