From c5b9d99b48deabf22f89a78182ae7fbbdb4e2769 Mon Sep 17 00:00:00 2001 From: Rob Gill Date: Mon, 16 Jul 2018 10:50:05 +1000 Subject: [PATCH] Add regex option to autocomplete Signed-off-by: Rob Gill --- advanced/bash-completion/pihole | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/advanced/bash-completion/pihole b/advanced/bash-completion/pihole index ff8fee56..c25c570b 100644 --- a/advanced/bash-completion/pihole +++ b/advanced/bash-completion/pihole @@ -7,10 +7,10 @@ _pihole() { case "${prev}" in "pihole") - opts="admin blacklist checkout chronometer debug disable enable flush help logging query reconfigure restartdns status tail uninstall updateGravity updatePihole version wildcard whitelist" + opts="admin blacklist checkout chronometer debug disable enable flush help logging query reconfigure regex restartdns status tail uninstall updateGravity updatePihole version wildcard whitelist" COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) ;; - "whitelist"|"blacklist"|"wildcard") + "whitelist"|"blacklist"|"wildcard"|"regex") opts_lists="\--delmode \--noreload \--quiet \--list \--nuke" COMPREPLY=( $(compgen -W "${opts_lists}" -- ${cur}) ) ;;