From 378a83a4fd8f90042eb31bc8cb2e7df9cd7de7b9 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Mon, 17 Sep 2007 00:13:31 +0200 Subject: [PATCH] Add initial zsh completion for grml-live. Update debian/rules according to new and renamed files. Update usage examples inside grml-live script. --- debian/rules | 7 ++++--- etc/zsh/completion.d/_grml-live | 20 ++++++++++++++++++++ grml-live | 4 ++-- 3 files changed, 26 insertions(+), 5 deletions(-) create mode 100644 etc/zsh/completion.d/_grml-live diff --git a/debian/rules b/debian/rules index 86fc4ff..e61d7fa 100755 --- a/debian/rules +++ b/debian/rules @@ -34,9 +34,10 @@ install: build usr/share/grml-live # Add here commands to install the package into debian/grml-live. - cp -a etc debian/grml-live/ - cp -a examples debian/grml-live/usr/share/doc/grml-live/ - cp -a x86_files debian/grml-live/usr/share/grml-live/ + cp -a etc debian/grml-live/ + cp -a examples debian/grml-live/usr/share/doc/grml-live/ + cp -a i386_files debian/grml-live/usr/share/grml-live/ + cp -a windows debian/grml-live/usr/share/grml-live/ install -o root -m 755 grml-live debian/grml-live/usr/sbin/grml-live # Build architecture-independent files here. diff --git a/etc/zsh/completion.d/_grml-live b/etc/zsh/completion.d/_grml-live new file mode 100644 index 0000000..ae3040d --- /dev/null +++ b/etc/zsh/completion.d/_grml-live @@ -0,0 +1,20 @@ +#compdef grml-live +# Filename: /etc/zsh/completion.d/_grml-live +# Purpose: completion for command grml-live for zsh (z shell) +# Authors: grml-team (grml.org), (c) Michael Prokop +# Bug-Reports: see http://grml.org/bugs/ +# License: This file is licensed under the GPL v2. +# Latest change: Mon Sep 17 00:11:55 CEST 2007 [mika] +################################################################################ + +arguments=( + '-c:classe(s):(`cd /etc/grml/fai/config/package_config && ls`)' + '-F[force execution without prompting for yes/no]' + '-h[display usage information]' + '-suite:Debian suite:(stable testing unstable etch lenny sid)' + '-v[increase verbosity]' +) +_arguments -s $arguments + +## END OF FILE ################################################################# +# vim:foldmethod=marker diff --git a/grml-live b/grml-live index 786eb75..7d15c60 100755 --- a/grml-live +++ b/grml-live @@ -56,14 +56,14 @@ usage() echo " $PN - build process script for generating a (grml based) Linux Live-ISO -Usage: $PN [-c ] [-t ] [-F] [-h|--help] [additional_arguments_for_fai] +Usage: $PN [-c ] [-t ] [-s [-Fvh] Usage examples: $PN $PN -c GRML,I386 -t /dev/shm/grml $PN -c GRML,GRML_X,I386 -t /grml/ - $PN -c GRML,I386 + $PN -s sid -c GRML,I386 More details: man grml-live /usr/share/doc/grml-live/grml-live.html -- 2.1.4