summaryrefslogtreecommitdiff
path: root/shell-completion/bash
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2019-04-25 19:37:54 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-04-26 08:04:15 +0200
commitf8f542482e1df9b99144becf74dfae13a4d4403d (patch)
treec240fee7c3ce0bf79aad1072a72b865fa7c44dee /shell-completion/bash
parent6e9d2465923f8b3577cd7cfc7ef886808ded8122 (diff)
downloadsystemd-f8f542482e1df9b99144becf74dfae13a4d4403d.tar.gz
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
Diffstat (limited to 'shell-completion/bash')
-rw-r--r--shell-completion/bash/journalctl1
1 files changed, 1 insertions, 0 deletions
diff --git a/shell-completion/bash/journalctl b/shell-completion/bash/journalctl
index 53ffaacdb5..d4aba59450 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)