mirror of
https://github.com/systemd/systemd.git
synced 2025-03-28 02:50:16 +03: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…
x
Reference in New Issue
Block a user