diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2019-04-25 19:37:54 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-04-26 08:04:15 +0200 |
commit | f8f542482e1df9b99144becf74dfae13a4d4403d (patch) | |
tree | c240fee7c3ce0bf79aad1072a72b865fa7c44dee | |
parent | 6e9d2465923f8b3577cd7cfc7ef886808ded8122 (diff) | |
download | systemd-f8f542482e1df9b99144becf74dfae13a4d4403d.tar.gz |
bash-completion: don't sort syslog priorities
By default, the available completions are sorted alphabetically, which
is counterproductive in case of syslog priorities. Override the default
behavior using the `nosort` option
-rw-r--r-- | shell-completion/bash/journalctl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/shell-completion/bash/journalctl b/shell-completion/bash/journalctl index 53ffaacdb5..d4aba59450 100644 --- a/shell-completion/bash/journalctl +++ b/shell-completion/bash/journalctl @@ -83,6 +83,7 @@ _journalctl() { ;; --priority|-p) comps=${__syslog_priorities[*]} + compopt -o nosort ;; --unit|-u) comps=$(journalctl -F '_SYSTEMD_UNIT' 2>/dev/null) |