2011-11-01 22:14:45 +02:00
|
|
|
# growisofs(1) completion -*- shell-script -*-
|
2010-11-03 21:11:07 +02:00
|
|
|
|
|
|
|
_growisofs()
|
|
|
|
{
|
2011-04-20 16:49:57 +03:00
|
|
|
local cur prev words cword
|
|
|
|
_init_completion || return
|
2010-11-03 21:11:07 +02:00
|
|
|
|
|
|
|
case $prev in
|
|
|
|
-version|-speed)
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
-Z|-M)
|
2011-04-27 17:21:06 +03:00
|
|
|
compopt -o nospace
|
2010-11-03 21:11:07 +02:00
|
|
|
_dvd_devices
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
/?(r)dev/*)
|
|
|
|
if [[ $cur == =* ]] ; then
|
|
|
|
# e.g. /dev/dvd=foo.iso, /dev/dvdrw=/dev/zero
|
|
|
|
cur="${cur#=}"
|
|
|
|
_filedir
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
if [[ "$cur" == -* ]]; then
|
|
|
|
# TODO: mkisofs options
|
|
|
|
COMPREPLY=( $( compgen -W '-dvd-compat -overburn -speed= -Z -M' \
|
|
|
|
-- "$cur" ) )
|
2011-04-27 17:21:06 +03:00
|
|
|
[[ ${COMPREPLY[@]} == *= ]] && compopt -o nospace
|
2010-11-03 21:11:07 +02:00
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
_filedir
|
|
|
|
} &&
|
|
|
|
complete -F _growisofs growisofs
|
|
|
|
|
|
|
|
# ex: ts=4 sw=4 et filetype=sh
|