#compdef loadkeys if [[ $OSTYPE == linux* ]] then _arguments \ '(--clearcompose)-c[clearcompose]' \ '(-c)--clearcompose' \ '(--default)-d[default]' \ '(-d)--default' \ '(--help)-h[help]' \ '(-h)--help' \ '(--mktable)-m[mktable]' \ '(-m)--mktable' \ '(--clearstrings)-s[clearstrings]' \ '(-s)--clearstrings' \ '(--verbose)-v[verbose]' \ '(-v)--verbose' \ ':keymap:_files -W /usr/share/keymaps' elif [[ $OSTYPE == solaris* ]] then _files -W /usr/share/lib/keytables fi