summary refs log tree commit diff
path: root/Completion/BSD/Command/_powerd
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-08-12 10:37:30 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-08-12 10:37:30 +0000
commitb2e70921b06eee523071218c8919a27c7f4ce206 (patch)
treefc51fa290e22b0e92d96c70a769c7872dcbc106d /Completion/BSD/Command/_powerd
parent6ce77ad7ba2195687114180bc8e5476f1f1212b7 (diff)
downloadzsh-b2e70921b06eee523071218c8919a27c7f4ce206.tar.gz
zsh-b2e70921b06eee523071218c8919a27c7f4ce206.tar.xz
zsh-b2e70921b06eee523071218c8919a27c7f4ce206.zip
25435: Baptiste Daroussin <baptiste.daroussin@gmail.com>:
new and improved BSD completions
unposted: fix Solaris completion .distfiles
Diffstat (limited to 'Completion/BSD/Command/_powerd')
-rw-r--r--Completion/BSD/Command/_powerd13
1 files changed, 13 insertions, 0 deletions
diff --git a/Completion/BSD/Command/_powerd b/Completion/BSD/Command/_powerd
new file mode 100644
index 000000000..8b275ed89
--- /dev/null
+++ b/Completion/BSD/Command/_powerd
@@ -0,0 +1,13 @@
+#compdef powerd
+
+local powerd_mode
+powerd_mode=(minimum maximum adaptative)
+_arguments -s \
+    "-a[Mode to use while on AC power]:mode:($powerd_mode)" \
+    "-b[Mode to use while on battery power]:mode:($powerd_mode)" \
+    '-i[CPU idle percent level when begin to degrade performance]:percent:' \
+    "-n[mode to use normally when the AC line state is unknown]:mode:($powerd_mode)" \
+    '-p[polling interval (in milliseconds) for AC line state and system idle levels]:interval:' \
+    '-P[Alternative pidfile]:pidfile:_files' \
+    '-r[CPU idle percent level where to increase performance]:percent:' \
+    '-v[Verbose mode]'