1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-23 04:30:24 +02:00

23775: restore completion of devicename=filename pairs after -Z and -M.

This commit is contained in:
Clint Adams 2007-08-18 04:23:18 +00:00
parent 0a607f5eef
commit b37f52b884
2 changed files with 21 additions and 3 deletions

View file

@ -1,5 +1,8 @@
#compdef mkisofs growisofs
local context state line
typeset -A opt_args
declare -a find_options
find_options=(
@ -181,8 +184,8 @@ else
if [[ $service == growisofs ]]; then
growisofs_options=(
'-Z[burn an initial session to the selected device]:device:_files -g "*(%,@)"'
'-M[merge a session with an existing one on the selected device]:device:_files -g "*(%,@)"'
'-Z[burn an initial session to the selected device]:device:->devimg'
'-M[merge a session with an existing one on the selected device]:device:->devimg'
'-dvd-compat[provide maximum compatibility with DVD-ROM/Video]'
'-dry-run[do everything up to the actual burning process]'
'-overburn[allow overburning of the media]'
@ -328,5 +331,15 @@ else
'(- *)-help[display help message]' \
'(- *)-version[display version information]' \
$growisofs_options \
'*:pathspec:_mkisofs_pathspec'
'*:pathspec:_mkisofs_pathspec' && return 0
case "$state" in
(devimg)
if compset -P \*=; then
_files
else
_files -g "*(%,@)"
fi
;;
esac
fi