mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08: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:
committed by
Zbigniew Jędrzejewski-Szmek
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)
|
||||
|
||||
Reference in New Issue
Block a user