Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug#531549: zsh: completion for bzr switch



On Tue, Jun 02, 2009 at 10:01:41AM +0100, Colin Watson wrote:
> zsh should complete the 'bzr switch' subcommand, added in bzr 1.0rc1.
> Attached is a patch against the master branch of
> git://git.debian.org/git/private/schizo/zsh.git.

Thanks.

Index: Completion/Unix/Command/_bzr
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_bzr,v
retrieving revision 1.9
diff -u -r1.9 _bzr
--- Completion/Unix/Command/_bzr	7 Nov 2008 02:34:51 -0000	1.9
+++ Completion/Unix/Command/_bzr	2 Jun 2009 18:03:53 -0000
@@ -331,6 +331,16 @@
 	)
     ;;
 
+(switch)
+    args+=(
+	'--force[Switch even if local commits will be lost]'
+	'(-q --quiet -v --verbose)'{--quiet,-q}'[be quiet]'
+	'(-v --verbose -q --quiet)'{--verbose,-v}'[display more information]'
+	'*:local repository:_files -/'
+	)
+    _bzr_completeParents
+    ;;
+
 (help)
     args=(
 	'(-l --long)'{--long,-l}'[use long format]'



Messages sorted by: Reverse Date, Date, Thread, Author