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
This commit is contained in:
Frantisek Sumsal 2019-04-25 19:37:54 +02:00 committed by Zbigniew Jędrzejewski-Szmek
parent 6e9d246592
commit f8f542482e

View file

@ -83,6 +83,7 @@ _journalctl() {
;;
--priority|-p)
comps=${__syslog_priorities[*]}
compopt -o nosort
;;
--unit|-u)
comps=$(journalctl -F '_SYSTEMD_UNIT' 2>/dev/null)