From: Frantisek Sumsal Date: Thu, 25 Apr 2019 17:37:54 +0000 (+0200) Subject: bash-completion: don't sort syslog priorities X-Git-Tag: archive/raspbian/242-7+rpi1^2~24 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=990e2871c071677ba07bb6ca163b2b50b5979398;p=systemd.git 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 (cherry picked from commit f8f542482e1df9b99144becf74dfae13a4d4403d) Gbp-Pq: Name bash-completion-don-t-sort-syslog-priorities.patch --- diff --git a/shell-completion/bash/journalctl b/shell-completion/bash/journalctl index 3beb347e..51e1e6a1 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)