summaryrefslogtreecommitdiff
path: root/shell-completion/bash/journalctl
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@gmail.com>2017-01-21 16:38:23 +0900
committerNamhyung Kim <namhyung@gmail.com>2017-01-21 16:38:23 +0900
commit28b6b5de3f6c8943e83afe4e213cdb6a8c7e1a72 (patch)
tree50686d9ad7aaf7bbec520f71448a0236236d32d8 /shell-completion/bash/journalctl
parented52c971bfa546bfe1f8b329a41ac06077464fb6 (diff)
bash_completion: journalctl: Complete -t option values
The -t or --identifier requires a syslog identifier.
Diffstat (limited to 'shell-completion/bash/journalctl')
-rw-r--r--shell-completion/bash/journalctl3
1 files changed, 3 insertions, 0 deletions
diff --git a/shell-completion/bash/journalctl b/shell-completion/bash/journalctl
index ded92cb73a..c90a114497 100644
--- a/shell-completion/bash/journalctl
+++ b/shell-completion/bash/journalctl
@@ -82,6 +82,9 @@ _journalctl() {
--user-unit)
comps=$(journalctl -F '_SYSTEMD_USER_UNIT' 2>/dev/null)
;;
+ --identifier|-t)
+ comps=$(journalctl -F 'SYSLOG_IDENTIFIER' 2>/dev/null)
+ ;;
*)
return 0
;;