summaryrefslogtreecommitdiff
path: root/shell-completion/zsh/_systemd-inhibit
diff options
context:
space:
mode:
authorEric Cook <llua@gmx.com>2015-06-22 18:07:32 -0400
committerEric Cook <llua@gmx.com>2015-06-22 18:07:32 -0400
commitfb9d85b71ac1a9247af623f98f4e229fccd0fe7d (patch)
treeec1a9e162e29c595c2329bcb896d7e3d7a2b0637 /shell-completion/zsh/_systemd-inhibit
parent38cf1e292b00f20ee3b5e4f7ed9d7b942da108b2 (diff)
zsh-completion: _loginctl/_systemd/_systemd-inhibit improvements
_loginctl: respects the verbose style. which allows a user to get the pre d5df0d950f8bc behavior of not showing a description for sessions and users, by default they aren't shown. zstyle ':completion:*' verbose true or zstyle ':completion:*:loginctl*:*' verbose true # or similar Will show the descriptions. zstyle ':completion:*' verbose true and zstyle ':completion:*:loginctl*:*' verbose false # or similar Won't show descriptions for loginctl only _systemd: complete pids for systemd-notify's --pid option. display a message of the expected argument for other options. _systemd-inhibit: complete block & delay for --mode display a message of the expected argument for --who/--why
Diffstat (limited to 'shell-completion/zsh/_systemd-inhibit')
-rw-r--r--shell-completion/zsh/_systemd-inhibit6
1 files changed, 3 insertions, 3 deletions
diff --git a/shell-completion/zsh/_systemd-inhibit b/shell-completion/zsh/_systemd-inhibit
index 1ecb6dc7ee..1b3247b2cd 100644
--- a/shell-completion/zsh/_systemd-inhibit
+++ b/shell-completion/zsh/_systemd-inhibit
@@ -26,8 +26,8 @@ _arguments \
{-h,--help}'[Show this help]' \
'--version[Show package version]' \
'--what=[Operations to inhibit]:options:_inhibit_what' \
- '--who=[A descriptive string who is inhibiting]' \
- '--why=[A descriptive string why is being inhibited]' \
- '--mode=[One of block or delay]' \
+ '--who=[A descriptive string who is inhibiting]:who is inhibiting:' \
+ '--why=[A descriptive string why is being inhibited]:reason for the lock:' \
+ '--mode=[One of block or delay]:lock mode:( block delay )' \
'--list[List active inhibitors]' \
'*:commands:_systemd_inhibit_command'