38 lines
1.9 KiB
Diff
38 lines
1.9 KiB
Diff
From 65fd39f8a222a3dadf53de50b15664d5c2f73bf2 Mon Sep 17 00:00:00 2001
|
|
From: Ronny Chevalier <chevalier.ronny@gmail.com>
|
|
Date: Mon, 12 Jan 2015 21:43:45 +0100
|
|
Subject: [PATCH] zsh-completion: add missing completions for systemd-analyze
|
|
|
|
(cherry picked from commit 26bd71f06c842585b184c3c2f29376564102232d)
|
|
---
|
|
shell-completion/zsh/_systemd-analyze | 14 +++++++++-----
|
|
1 file changed, 9 insertions(+), 5 deletions(-)
|
|
|
|
diff --git a/shell-completion/zsh/_systemd-analyze b/shell-completion/zsh/_systemd-analyze
|
|
index c101ad0fae..3edf92effe 100644
|
|
--- a/shell-completion/zsh/_systemd-analyze
|
|
+++ b/shell-completion/zsh/_systemd-analyze
|
|
@@ -42,13 +42,17 @@ _systemd_analyze_command(){
|
|
}
|
|
|
|
_arguments \
|
|
- {-h,--help}'[Show help text.]' \
|
|
- '--system[Operate on system systemd instance.]' \
|
|
- '--user[Operate on user systemd instance.]' \
|
|
- '--no-pager[Do not user pager.]' \
|
|
- '--no-man[Do not check man pages.]' \
|
|
+ {-h,--help}'[Show help text]' \
|
|
+ '--version[Show package version]' \
|
|
+ '--system[Operate on system systemd instance]' \
|
|
+ '--user[Operate on user systemd instance]' \
|
|
+ '--no-pager[Do not pipe output into a pager]' \
|
|
+ '--man=[Do (not) check for exietnce of man pages]:boolean:(1 0)' \
|
|
'--order[When generating graph for dot, show only order]' \
|
|
'--require[When generating graph for dot, show only requirement]' \
|
|
+ '--fuzz=[When printing the tree of the critical chain, print also services, which finished TIMESPAN earlier, than the latest in the branch]:TIMESPAN' \
|
|
+ '--from-pattern=[When generating a dependency graph, filter only origins]:GLOB' \
|
|
+ '--to-pattern=[When generating a dependency graph, filter only destinations]:GLOB' \
|
|
{-H+,--host=}'[Operate on remote host]:userathost:_sd_hosts_or_user_at_host' \
|
|
{-M+,--machine=}'[Operate on local container]:machine' \
|
|
'*::systemd-analyze commands:_systemd_analyze_command'
|