mirror of
https://github.com/systemd/systemd
synced 2024-07-21 02:05:05 +00:00
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:
parent
6e9d246592
commit
f8f542482e
|
@ -83,6 +83,7 @@ _journalctl() {
|
|||
;;
|
||||
--priority|-p)
|
||||
comps=${__syslog_priorities[*]}
|
||||
compopt -o nosort
|
||||
;;
|
||||
--unit|-u)
|
||||
comps=$(journalctl -F '_SYSTEMD_UNIT' 2>/dev/null)
|
||||
|
|
Loading…
Reference in a new issue