From 13f22f5df6164ed231a879778b0b9c472a316736 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 8 Aug 2008 20:10:44 +0200 Subject: Added fan completion --- etc/completions/_fan | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 etc/completions/_fan (limited to 'etc') diff --git a/etc/completions/_fan b/etc/completions/_fan new file mode 100644 index 0000000..ca74639 --- /dev/null +++ b/etc/completions/_fan @@ -0,0 +1,20 @@ +#compdef fan +## vim:ft=zsh +## fan completion +## Daniel Friesel +## 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 +} -- cgit v1.2.3