blob: c8b1abec6af9b514b0acf98b056c24f408d1a6c0 (
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
_colors
return
fi
_colors && 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
|