1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-01 09:41:44 +02:00
zsh/Completion/Pbmplus/_pgmtoppm
1999-08-31 10:16:50 +00:00

21 lines
361 B
Text

#compdef pgmtoppm
local ret=1 expl
if [[ CURRENT -eq 2 ]]; then
if compset -P '?*-'; then
_x_color
return
fi
_x_color && ret=0
_description expl option
compadd "$expl[@]" - -map && ret=0
return ret
elif [[ CURRENT -eq 3 && "$words[2]" = -map ]]; then
_description expl 'map file'
_files "$expl[@]" -g '*.(#i)ppm'
else
_pbm_file
fi