]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bash-completion: journalctl: add --grep and --case-sensitive
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 8 Aug 2018 01:47:44 +0000 (10:47 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 8 Aug 2018 06:26:38 +0000 (15:26 +0900)
shell-completion/bash/journalctl

index 48781ee7ce306af44f796bda48fc0451126b4c7c..5a5131e5b33790b692b7052663c70d9a0fb24566 100644 (file)
@@ -46,9 +46,9 @@ _journalctl() {
                               --flush --rotate --sync --no-hostname -N --fields'
                        [ARG]='-b --boot -D --directory --file -F --field -t --identifier
                               -M --machine -o --output -u --unit --user-unit -p --priority
-                              --root'
+                              --root --case-sensitive'
                 [ARGUNKNOWN]='-c --cursor --interval -n --lines -S --since -U --until
-                              --after-cursor --verify-key
+                              --after-cursor --verify-key -g --grep
                               --vacuum-size --vacuum-time --vacuum-files --output-fields'
         )
 
@@ -86,6 +86,9 @@ _journalctl() {
                         --identifier|-t)
                                 comps=$(journalctl -F 'SYSLOG_IDENTIFIER' 2>/dev/null)
                         ;;
+                        --case-sensitive)
+                                comps='yes no'
+                        ;;
                         *)
                                 return 0
                         ;;