about summary refs log tree commit diff
path: root/Completion/Pbmplus/_rgb3toppm
blob: ac4df434df6766e3a45c035114a8bf539e4b2c75 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#compdef rgb3toppm

local expl

if [[ CURRENT -eq 2 ]]; then
  expl='red picture file'
elif [[ CURRENT -eq 3 ]]; then
  expl='green picture file'
elif [[ CURRENT -eq 4 ]]; then
  expl='blue picture file'
fi

if [[ -n "$expl" ]]; then
  _description expl "$expl"
  _files "$expl" -g '*.(#i)pgm'
fi