summaryrefslogtreecommitdiff
path: root/shell-completion/systemd-bash-completion.sh
diff options
context:
space:
mode:
authorDaniel Wallace <danielwallace@gtmanfred.com>2013-03-01 14:39:04 +0100
committerLennart Poettering <lennart@poettering.net>2013-03-01 14:39:04 +0100
commitffa7cd15cd2a9e802827ef0f5762de6c22933c07 (patch)
tree343330dc70c19196246e27fed3fe4e59658faa68 /shell-completion/systemd-bash-completion.sh
parent242c4e1cc4d6419043729904d7dd88b2b1283556 (diff)
journalctl: add --user-unit= switch
Add --user-unit= to make it possible to query for user logs by the name of the service.
Diffstat (limited to 'shell-completion/systemd-bash-completion.sh')
-rw-r--r--shell-completion/systemd-bash-completion.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/shell-completion/systemd-bash-completion.sh b/shell-completion/systemd-bash-completion.sh
index 7848bafc17..40e66e9d10 100644
--- a/shell-completion/systemd-bash-completion.sh
+++ b/shell-completion/systemd-bash-completion.sh
@@ -300,7 +300,7 @@ _journalctl() {
-h --help -l --local --new-id128 -m --merge --no-pager
--no-tail -q --quiet --setup-keys --this-boot --verify
--version --list-catalog --update-catalog'
- [ARG]='-D --directory -F --field -o --output -u --unit'
+ [ARG]='-D --directory -F --field -o --output -u --unit --user-unit'
[ARGUNKNOWN]='-c --cursor --interval -n --lines -p --priority --since --until
--verify-key'
)
@@ -320,6 +320,9 @@ _journalctl() {
--unit|-u)
comps=$(journalctl -F '_SYSTEMD_UNIT')
;;
+ --user-unit)
+ comps=$(journalctl -F '_SYSTEMD_USER_UNIT')
+ ;;
*)
return 0
;;