From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16910 invoked from network); 26 Feb 2006 16:43:30 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 26 Feb 2006 16:43:30 -0000 Received: (qmail 7637 invoked from network); 26 Feb 2006 16:43:23 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 26 Feb 2006 16:43:23 -0000 Received: (qmail 14476 invoked by alias); 26 Feb 2006 16:43:20 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22302 Received: (qmail 14467 invoked from network); 26 Feb 2006 16:43:19 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 26 Feb 2006 16:43:19 -0000 Received: (qmail 7252 invoked from network); 26 Feb 2006 16:43:19 -0000 Received: from acolyte.scowler.net (216.254.112.45) by a.mx.sunsite.dk with SMTP; 26 Feb 2006 16:43:17 -0000 Received: by acolyte.scowler.net (Postfix, from userid 1000) id 1950C70055; Sun, 26 Feb 2006 11:43:15 -0500 (EST) Date: Sun, 26 Feb 2006 11:43:14 -0500 From: Clint Adams To: zsh-workers@sunsite.dk Subject: PATCH: _schroot Message-ID: <20060226164314.GA527@scowler.net> Mail-Followup-To: zsh-workers@sunsite.dk MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.11+cvs20060126 Index: Completion/Debian/Command/_schroot =================================================================== RCS file: Completion/Debian/Command/_schroot diff -N Completion/Debian/Command/_schroot --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ Completion/Debian/Command/_schroot 26 Feb 2006 16:42:26 -0000 @@ -0,0 +1,34 @@ +#compdef schroot + +local expl context state line +typeset -A opt_args + +_arguments \ + '(-h --help)'{-h,--help}'[help]' \ + '(-a --all)'{-a,--all}'[all chroots and active sessions]' \ + '--all-chroots' \ + '--all-sessions' \ + '*'{-c,--chroot=}':chroot:->chroot' \ + '(-u --user)'{-u,--user=}':user:_users' \ + '(-l --list)'{-l,--list}'[list available chroots]' \ + '(-i --info)'{-i,--info}'[print detailed information about specified chroots]' \ + '--location[print location of specified chroots]' \ + '--config[print configuration of specified chroots]' \ + '(-p --preserve-environment)'{-p,--preserve-environment}'[preserve user environment within chroot]' \ + '(-q --quiet)'{-q,--quiet}'[quiet]' \ + '(-v --verbose)'{-v,--verbose}'[verbose]' \ + '(-V --version)'{-V,--version}'[version]' \ + '(-b --begin-session)'{-b,--begin-session}'[begin a session]' \ + '--recover-session}[recover an existing session]' \ + '(-e --end-session)'{-e,--end-session=}':session UUID:' \ + '(-f --force)'{-f,--force}'[force a session operation]' \ + '(-):command name: _command_names -e' \ + '*::arguments: _normal' && return 0 + +case "$state" in + (chroot) + _wanted tag expl 'chroot' \ + compadd $(schroot -l) + ;; + +esac