Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pi-hole/pi-hole.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornate <nate@ubiquisoft.com>2016-04-03 01:58:10 +0300
committernate <nate@ubiquisoft.com>2016-04-03 01:58:10 +0300
commitd47fbbbe964fc6c1f8f8f96d44f11fe227c10b53 (patch)
treee0200dedfe92379929b2a501e6912479bbcdbc94 /advanced/bash-completion
parent767b72fbfaca7a6a2224e06f45147fdd7f8d66a7 (diff)
Mcat12 requests. Added bash-completion support
Diffstat (limited to 'advanced/bash-completion')
-rw-r--r--advanced/bash-completion/pihole12
1 files changed, 12 insertions, 0 deletions
diff --git a/advanced/bash-completion/pihole b/advanced/bash-completion/pihole
new file mode 100644
index 00000000..026f008f
--- /dev/null
+++ b/advanced/bash-completion/pihole
@@ -0,0 +1,12 @@
+_pihole()
+{
+ local cur prev opts
+ COMPREPLY=()
+ cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ opts="whitelist blacklist debug flush updateDashboard updateGravity setupLCD chronometer help"
+
+ COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+ return 0
+}
+complete -F _pihole pihole \ No newline at end of file