2 # Filename: /etc/zsh/completion.d/_grml2usb
3 # Purpose: completion of command grml2usb 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 ################################################################################
14 for dev in /dev/sd* /dev/hd* ; do
15 if [[ $(cat /sys/block/${dev#*dev/}/removable 2>/dev/null) == '1' ]] ; then
16 part=$(ls /dev/${dev#*dev/}[0-9])
22 # * handling of --bootoptions=BOOTOPTIONS and --lilo-binary=LILOBIN
23 # * $devices should also list directories as valid target
24 # * as output before :device:.... ISO files and/or /live/image should be suggested
27 '--help[display help message and exit]:'
28 '--bootoptions=[use specified bootoptions as default]:'
29 '--bootloader-only[do not copy files but just install a bootloader]'
30 '--copy-only[copy files only but do not install bootloader]'
31 '--dry-run[avoid executing commands]'
32 '--fat16[format specified partition with FAT16]'
33 '--force[force any actions requiring manual interaction]'
34 '--lilo-binary=LILOBIN[lilo executable to be used for installing MBR]:'
35 '--mbr-manager[enable interactive boot manager menu in MBR]'
36 '--quiet[do not output anything but just errors on console]'
37 '--skip-addons[do not install /boot/addons/ files]'
38 '--skip-mbr[do not install a master boot record (MBR) on the device]'
39 '--syslinux[install syslinux bootloader instead of grub]'
40 '--syslinux-mbr[install syslinux master boot record (MBR) instead of default]'
41 '--verbose[enable verbose mode]'
42 '--version[display program version and exit]'
45 _arguments -s $arguments
47 ## END OF FILE #################################################################
48 # vim:foldmethod=marker