From ded6e726e50693e80ee4e5b6cd2803e295ac16e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20H=C3=A4cker?= Date: Thu, 3 Nov 2016 14:46:13 +0100 Subject: [PATCH] Output current default priority in dpkg-reconfigure completion This might be a bit over the top, but getting the information that a default priority threshold is used without knowing what that value is or how to find out might not be so useful after all. Thus, change the completion to include this information dynamically. --- share/completions/dpkg-reconfigure.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/completions/dpkg-reconfigure.fish b/share/completions/dpkg-reconfigure.fish index 144fe734f..bd7624d57 100644 --- a/share/completions/dpkg-reconfigure.fish +++ b/share/completions/dpkg-reconfigure.fish @@ -8,7 +8,7 @@ complete -x -f -c dpkg-reconfigure -s h -l help --description 'Display help' # General options complete -f -c dpkg-reconfigure -s f -l frontend -r -a "dialog readline noninteractive gnome kde editor web" --description 'Set configuration frontend' complete -f -c dpkg-reconfigure -s p -l priority -r -a "low medium high critical" --description 'Set priority threshold' -complete -f -c dpkg-reconfigure -l default-priority --description 'Use default priority threshold' +complete -f -c dpkg-reconfigure -l default-priority --description "Use current default ("(echo get debconf/priority | debconf-communicate | string match -r '\w+$')") priority threshold" complete -f -c dpkg-reconfigure -s u -l unseen-only --description 'Show only unseen question' complete -f -c dpkg-reconfigure -l force --description 'Reconfigure also inconsistent packages' complete -f -c dpkg-reconfigure -l no-reload --description 'Prevent reloading templates'