blob: 1464bce77b7a6ed023b5e38021dfaf257e66428d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#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
|