diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-01-10 16:35:25 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-01-10 23:16:14 +0900 |
commit | 41053e9bdfc064ac45e3e52d9e523ee255fb1d9d (patch) | |
tree | 990ec3507a993fe7e2a89fde629e3b300ac063e5 /shell-completion/bash | |
parent | afcb2246be6eb77788616f6a78ae2cb1629f395b (diff) | |
download | systemd-41053e9bdfc064ac45e3e52d9e523ee255fb1d9d.tar.gz |
bash-completion: journalctl add missing options
Also, this deprecates '--this-boot' option.
Diffstat (limited to 'shell-completion/bash')
-rw-r--r-- | shell-completion/bash/journalctl | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/shell-completion/bash/journalctl b/shell-completion/bash/journalctl index 03ee733d7e..d2b9a04706 100644 --- a/shell-completion/bash/journalctl +++ b/shell-completion/bash/journalctl @@ -39,25 +39,25 @@ _journalctl() { [STANDALONE]='-a --all --full --system --user --disk-usage -f --follow --header -h --help -l --local --new-id128 -m --merge --no-pager - --no-tail -q --quiet --setup-keys --this-boot --verify + --no-tail -q --quiet --setup-keys --verify --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 --no-hostname' - [ARG]='-b --boot --this-boot -D --directory --file -F --field + --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 - --vacuum-size --vacuum-time --vacuum-files' - [ARGUNKNOWN]='-c --cursor --interval -n --lines -S --since -U --until - --after-cursor --verify-key -t --identifier --root' + [ARGUNKNOWN]='-c --cursor --interval -n --lines -S --since -U --until + --after-cursor --verify-key + --vacuum-size --vacuum-time --vacuum-files --output-fields' ) if __contains_word "$prev" ${OPTS[ARG]} ${OPTS[ARGUNKNOWN]}; then case $prev in - --boot|--this-boot|-b) + --boot|-b) comps=$(journalctl -F '_BOOT_ID' 2>/dev/null) ;; - --directory|-D) + --directory|-D|--root) comps=$(compgen -d -- "$cur") compopt -o filenames ;; @@ -66,7 +66,7 @@ _journalctl() { compopt -o filenames ;; --output|-o) - comps='short short-full short-iso short-precise short-monotonic short-unix verbose export json json-pretty json-sse cat' + comps='short short-full short-iso short-iso-precise short-precise short-monotonic short-unix verbose export json json-pretty json-sse cat' ;; --field|-F) comps=$(journalctl --fields | sort 2>/dev/null) |