about summary refs log tree commit diff
path: root/Completion/Debian/Command/_schroot
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2006-02-26 16:45:45 +0000
committerClint Adams <clint@users.sourceforge.net>2006-02-26 16:45:45 +0000
commit4d36e70a9b3ce390bbe799d12d5117880a3d8c83 (patch)
tree2d67fadac6716a297d6cfd4697f7d4ac4fdc891e /Completion/Debian/Command/_schroot
parent17c7f2f94125a94eddccfdd9f4b6bc54a9fa0de8 (diff)
downloadzsh-4d36e70a9b3ce390bbe799d12d5117880a3d8c83.tar.gz
zsh-4d36e70a9b3ce390bbe799d12d5117880a3d8c83.tar.xz
zsh-4d36e70a9b3ce390bbe799d12d5117880a3d8c83.zip
22302: completion for schroot.
Diffstat (limited to 'Completion/Debian/Command/_schroot')
-rw-r--r--Completion/Debian/Command/_schroot34
1 files changed, 34 insertions, 0 deletions
diff --git a/Completion/Debian/Command/_schroot b/Completion/Debian/Command/_schroot
new file mode 100644
index 000000000..025215be2
--- /dev/null
+++ b/Completion/Debian/Command/_schroot
@@ -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