summaryrefslogtreecommitdiffstats
path: root/shell-completion/bash
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-02-08 12:09:28 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-02-09 12:27:34 +0100
commitecd3717a74541263fe19df3c9f6b65927c3f619a (patch)
treea191b07f8003547c2bffcb81c261e3728ef5fdf2 /shell-completion/bash
parentanalyze: add unit-paths verb (diff)
downloadsystemd-ecd3717a74541263fe19df3c9f6b65927c3f619a.tar.xz
systemd-ecd3717a74541263fe19df3c9f6b65927c3f619a.zip
shell-completion: add --global and unit-paths
Diffstat (limited to 'shell-completion/bash')
-rw-r--r--shell-completion/bash/systemd-analyze10
1 files changed, 5 insertions, 5 deletions
diff --git a/shell-completion/bash/systemd-analyze b/shell-completion/bash/systemd-analyze
index fb30487613..a66ddccb02 100644
--- a/shell-completion/bash/systemd-analyze
+++ b/shell-completion/bash/systemd-analyze
@@ -36,13 +36,13 @@ _systemd_analyze() {
local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
local -A OPTS=(
- [STANDALONE]='-h --help --version --system --user --order --require --no-pager
+ [STANDALONE]='-h --help --version --system --user --global --order --require --no-pager
--man=no --generators=yes'
[ARG]='-H --host -M --machine --fuzz --from-pattern --to-pattern'
)
local -A VERBS=(
- [STANDALONE]='time blame plot dump calendar'
+ [STANDALONE]='time blame plot dump unit-paths calendar'
[CRITICAL_CHAIN]='critical-chain'
[DOT]='dot'
[LOG_LEVEL]='log-level'
@@ -85,7 +85,7 @@ _systemd_analyze() {
elif __contains_word "$verb" ${VERBS[STANDALONE]}; then
if [[ $cur = -* ]]; then
- comps='--help --version --system --user'
+ comps='--help --version --system --user --global'
fi
elif __contains_word "$verb" ${VERBS[CRITICAL_CHAIN]}; then
@@ -95,7 +95,7 @@ _systemd_analyze() {
elif __contains_word "$verb" ${VERBS[DOT]}; then
if [[ $cur = -* ]]; then
- comps='--help --version --system --user --from-pattern --to-pattern --order --require'
+ comps='--help --version --system --user --global --from-pattern --to-pattern --order --require'
fi
elif __contains_word "$verb" ${VERBS[LOG_LEVEL]}; then
@@ -119,7 +119,7 @@ _systemd_analyze() {
elif __contains_word "$verb" ${VERBS[VERIFY]}; then
if [[ $cur = -* ]]; then
- comps='--help --version --system --user --man=no --generators=yes'
+ comps='--help --version --system --user --global --man=no --generators=yes'
else
comps=$( compgen -A file -- "$cur" )
compopt -o filenames