mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-01 18:30:55 +01:00
16 lines
316 B
Text
16 lines
316 B
Text
#compdef pnmgamma
|
|
|
|
local ret=1
|
|
|
|
if [[ CURRENT -eq 2 ]]; then
|
|
_message 'gamma value or red gamma value'
|
|
elif [[ CURRENT -eq 3 ]]; then
|
|
_pbm_file && ret=0
|
|
_message 'green gamma value'
|
|
elif [[ CURRENT -eq 4 ]]; then
|
|
_message 'blue gamma value'
|
|
elif [[ CURRENT -eq 5 ]]; then
|
|
_pbm_file && ret=0
|
|
fi
|
|
|
|
return ret
|