2 # Filename: /etc/zsh/completion.d/_grml-live
3 # Purpose: completion for command grml-live for zsh (z shell)
4 # Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
5 # Bug-Reports: see http://grml.org/bugs/
6 # License: This file is licensed under the GPL v2.
7 # Latest change: Thu, 01 Nov 2007 14:00:40 +0100 [ft]
8 ################################################################################
10 _grmllive_flavours() { #{{{
16 grml-medium grml64-medium
17 grml-small grml64-small
19 _wanted list expl 'grml flavour(s)' compadd ${expl} -- ${flavours}
22 _grmllive_archs() { #{{{
23 local expl runningarch
26 runningarch="$(dpkg --print-architecture)"
27 archs=( ${runningarch} )
28 [[ ${runningarch} == 'amd64' ]] && archs=( ${archs} 'i386')
29 _wanted list expl 'target architecture' compadd ${expl} -- ${archs}
32 _grmllive_classes() { #{{{
34 local -a already static_classes
37 RELEASE LATEX_CLEANUP NO_ONLINE REMOVE_DOCS LOCALES
41 already=(${(s<,>)IPREFIX})
42 _wanted list expl 'classe(s)' compadd -S, -F already -q ${expl} -- \
43 /etc/grml/fai/config/class/*(.N:t:r) ${static_classes}
46 _grmllive_suites() { #{{{
53 _wanted list expl 'Debian suite' compadd ${expl} -- ${suites}
57 '-F[force execution without prompting for yes/no]'
58 '-a[specifiy architecture to use]:arch(s):_grmllive_archs'
59 '-c[available grml-live classes]:classe(s):_grmllive_classes'
60 '-g[grml flavour to use]:grml flavour(s):_grmllive_flavours'
61 '-h[display usage information]'
62 '-i[iso name, ends up in $OUTPUT_DIRECTORY/grml_isos]:iso name:'
63 '-o[output directory]:output directory:_path_files -/'
64 '-s[debian suite to be used for live-system]:Debian suite:_grmllive_suites'
65 '-t[template directory]:template directory:_path_files -/'
66 '-u[update existing chroot if possible]'
67 '-V[increase verbosity]'
71 _arguments -s $arguments
73 ## END OF FILE #################################################################
74 # vim:foldmethod=marker