2012-08-19 13:48:20 +03:00
|
|
|
# bash completion for eject(1) -*- shell-script -*-
|
|
|
|
|
cal,chfn,chsh,dmesg,eject,hexdump,look,newgrp,renice,runuser,su,write: Deprecate on Linux in favor of util-linux ones (Debian: #737672)
2014-02-08 19:34:02 +02:00
|
|
|
# Use of this file is deprecated on Linux. Upstream completion is
|
|
|
|
# available in util-linux >= 2.23, use that instead.
|
|
|
|
|
2012-08-19 13:48:20 +03:00
|
|
|
_eject()
|
|
|
|
{
|
|
|
|
local cur prev words cword
|
|
|
|
_init_completion || return
|
|
|
|
|
|
|
|
case $prev in
|
|
|
|
-h|--help|-V|--version|-c|--changerslot|-x|--cdspeed)
|
|
|
|
return
|
|
|
|
;;
|
|
|
|
-a|--auto|-i|--manualeject)
|
|
|
|
COMPREPLY=( $( compgen -W 'on off' -- "$cur" ) )
|
|
|
|
return
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
if [[ $cur == -* ]]; then
|
|
|
|
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
|
|
|
|
return
|
|
|
|
elif [[ $prev == @(-d|--default) ]]; then
|
|
|
|
return
|
|
|
|
fi
|
|
|
|
|
|
|
|
_cd_devices
|
|
|
|
_dvd_devices
|
|
|
|
} &&
|
|
|
|
complete -F _eject eject
|
|
|
|
|
|
|
|
# ex: ts=4 sw=4 et filetype=sh
|