1 2 3 4 5 6 7
#autoload local expl _wanted modifiers expl modifier && compadd "$@" "$expl[@]" -M 'm:{a-z}={A-Z}' - \ Shift Lock Control Mod1 Mod2 Mod3 Mod4 Mod5