blob: 3d131da2cb4fa828d5b3377c7f02aa32dc61677c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# acpi(1) completion -*- shell-script -*-
_comp_cmd_acpi()
{
local cur prev words cword comp_args
_comp_initialize -- "$@" || return
local noargopts='!(-*|*[d]*)'
# shellcheck disable=SC2254
case $prev in
--help | --version | -${noargopts}[hv])
return
;;
--directory | -${noargopts}d)
_comp_compgen_filedir -d
return
;;
esac
_comp_compgen_help
} &&
complete -F _comp_cmd_acpi acpi
# ex: filetype=sh
|