summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-01-21 12:48:27 -0500
committerGitHub <noreply@github.com>2017-01-21 12:48:27 -0500
commit2feb1c9659f8f9d873615b0c28217a659bdbc86a (patch)
tree50686d9ad7aaf7bbec520f71448a0236236d32d8
parentb03ec0096037bddfe0ece2af9a6b14b61df02b34 (diff)
parent28b6b5de3f6c8943e83afe4e213cdb6a8c7e1a72 (diff)
Merge pull request #5126 from namhyung/journalctl-completion
bash_completion: Small update for journalctl completion.
-rw-r--r--shell-completion/bash/journalctl7
1 files changed, 5 insertions, 2 deletions
diff --git a/shell-completion/bash/journalctl b/shell-completion/bash/journalctl
index a999a10df1..c90a114497 100644
--- a/shell-completion/bash/journalctl
+++ b/shell-completion/bash/journalctl
@@ -42,10 +42,10 @@ _journalctl() {
--version --list-catalog --update-catalog --list-boots
--show-cursor --dmesg -k --pager-end -e -r --reverse
--utc -x --catalog --no-full --force --dump-catalog
- --flush --rotate --sync'
+ --flush --rotate --sync --no-hostname'
[ARG]='-b --boot --this-boot -D --directory --file -F --field
-M --machine -o --output -u --unit --user-unit -p --priority
- --vacuum-size --vacuum-time'
+ --vacuum-size --vacuum-time --vacuum-files'
[ARGUNKNOWN]='-c --cursor --interval -n --lines -S --since -U --until
--after-cursor --verify-key -t --identifier
--root'
@@ -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
;;