blob: a86e6b9f22d0592d54ac1c39323918138df050d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#compdef fan
## vim:ft=zsh
## fan completion
## Daniel Friesel <derf@derf.homelinux.org>
## https://derf.homelinux.org/~derf/dotfiles/zsh/completions/_fan
local arguments_thinkpad arguments_generic
arguments_thinkpad=(
'::fan level:(low med high auto)'
)
arguments_generic=(
':fan state:(on off)'
)
if [[ -w /proc/acpi/ibm/fan ]] {
_arguments -s $arguments_thinkpad
} elif [[ -w /proc/acpi/fan/FAN/state ]] {
_arguments -s $arguments_generic
}
|