Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] _powerd: add -M and -m options
- X-seq: zsh-workers 42825
- From: Eitan Adler <lists@xxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] _powerd: add -M and -m options
- Date: Sat, 26 May 2018 07:08:21 +0000
- Cc: Eitan Adler <lists@xxxxxxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=from:to:cc:subject:date:message-id; bh=Dg7MvL4PIx4agrtwExnzn9ZYMzOok9K6MPkOP7UCdhQ=; b=e2Wx/4opWVXFm9b74gqaQ1NhUXrzQKNehS9SfjvTYrU4xBuhORbfhHsuaNPL96Z+1b BBzrqd2zr2g+NzVzzmBj9XPH2uJ9gWUJS5JVYPQ8/pgdgif4uzrs2VkNEML3zi3JRwjR sEvB4DV4lpzWM5ZvO+r5DtvxrQMzg4zh4dL6M=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
These are specific numeric values. While we can be more careful about
allowed values, limiting to numbers is good enough for now.
Signed-off-by: Eitan Adler <lists@xxxxxxxxxxxxxx>
---
Completion/BSD/Command/_powerd | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Completion/BSD/Command/_powerd b/Completion/BSD/Command/_powerd
index 18a9fb437..88d7c401b 100644
--- a/Completion/BSD/Command/_powerd
+++ b/Completion/BSD/Command/_powerd
@@ -6,6 +6,8 @@ _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:' \
+ "-m[maximum frequency to throttle down to]:freq: :_guard '[0-9]#' 'numeric value'" \
+ "-M[maximum frequency to throttle up to]:freq: :_guard '[0-9]#' 'numeric value'" \
"-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' \
--
2.17.0
Messages sorted by:
Reverse Date,
Date,
Thread,
Author