summaryrefslogtreecommitdiff
path: root/shell-completion/systemd-bash-completion.sh
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2012-11-17 15:27:59 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2012-11-17 15:32:04 +0100
commite3657ecd7f9f9bd6a1719fc808639cd4b780674a (patch)
treefe635b60249497b071f59b07720f97f714a60715 /shell-completion/systemd-bash-completion.sh
parent1e1954f53386cb773e2a152748dd31c4d36aa2d8 (diff)
journalctl: add option to forgo ellipsization
Sometimes it is better to see messages in full, and the existing set of options didn't allow this easily. E.g. now journalctl -f --full will behave like tail -f /var/log/messages of yore. Long option only for now, since small letters are becoming scarce, and this doesn't feel like a capital-letter-option. '-u' would be nice, and the above command would be spelled journalctl -fu
Diffstat (limited to 'shell-completion/systemd-bash-completion.sh')
-rw-r--r--shell-completion/systemd-bash-completion.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell-completion/systemd-bash-completion.sh b/shell-completion/systemd-bash-completion.sh
index 2d425c0aab..c1b851c24e 100644
--- a/shell-completion/systemd-bash-completion.sh
+++ b/shell-completion/systemd-bash-completion.sh
@@ -294,7 +294,8 @@ __journal_fields=(MESSAGE{,_ID} PRIORITY CODE_{FILE,LINE,FUNC}
_journalctl() {
local field_vals= cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
local -A OPTS=(
- [STANDALONE]='-a --all -b --this-boot --disk-usage -f --follow --header
+ [STANDALONE]='-a --all --full
+ -b --this-boot --disk-usage -f --follow --header
-h --help -l --local --new-id128 -m --merge --no-pager
--no-tail -q --quiet --setup-keys --this-boot --verify
--version --list-catalog --update-catalog'