]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bash-completion: analyze: add --no-pager for some verbs
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 10 May 2018 18:33:55 +0000 (03:33 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 10 May 2018 18:33:55 +0000 (03:33 +0900)
shell-completion/bash/systemd-analyze

index a66ddccb020f4be65f165dd688a99c4208dff225..9c59429f0fd4f42601af822b0acdd6bcd83fdecc 100644 (file)
@@ -85,12 +85,12 @@ _systemd_analyze() {
 
         elif __contains_word "$verb" ${VERBS[STANDALONE]}; then
                 if [[ $cur = -* ]]; then
-                        comps='--help --version --system --user --global'
+                        comps='--help --version --system --user --global --no-pager'
                 fi
 
         elif __contains_word "$verb" ${VERBS[CRITICAL_CHAIN]}; then
                 if [[ $cur = -* ]]; then
-                        comps='--help --version --system --user --fuzz'
+                        comps='--help --version --system --user --fuzz --no-pager'
                 fi
 
         elif __contains_word "$verb" ${VERBS[DOT]}; then
@@ -114,7 +114,7 @@ _systemd_analyze() {
 
         elif __contains_word "$verb" ${VERBS[SECCOMP_FILTER]}; then
                 if [[ $cur = -* ]]; then
-                        comps='--help --version'
+                        comps='--help --version --no-pager'
                 fi
 
         elif __contains_word "$verb" ${VERBS[VERIFY]}; then