From: Frantisek Sumsal Date: Thu, 25 Apr 2019 17:37:54 +0000 (+0200) Subject: bash-completion: don't sort syslog priorities X-Git-Tag: v243-rc1~519 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f8f542482e1df9b99144becf74dfae13a4d4403d;p=thirdparty%2Fsystemd.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 --- diff --git a/shell-completion/bash/journalctl b/shell-completion/bash/journalctl index 53ffaacdb55..d4aba59450b 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)