about summary refs log tree commit diff
path: root/Completion/Unix/Command/_loadkeys
blob: d0a87b6f6361b843328531a21d54648d44cb1d6e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#compdef loadkeys

case $OSTYPE in
  linux*)
    _arguments \
      '(--clearcompose -c)'{--clearcompose,-c}'[clear kernel compose table]' \
      '(--default -d)'{--default,-d}'[load default keymap file]' \
      '(--help -h)'{--help,-h}'[display help information]' \
      '(--mktable -m)'{--mktable,-m}'[output a "defkeymap.c" to stdout]' \
      '(--clearstrings)'{--clearstrings,-s}'[clear kernel string table]' \
      '*'{--verbose,-v}'[print more details]' \
      ':keymap:_files -W /usr/share/keymaps'
  ;;
  solaris*)
    _files -W /usr/share/lib/keytables
  ;;

  *) _default;;
esac