[dconf] bin/completion/dconf: Add compile to autocomplete



commit 770907e7a2da2e34df170ed2cf7aec07e387d7cd
Author: Andreas Polnas <andreas polnas93 hotmail com>
Date:   Wed Jul 15 19:00:42 2020 +0200

    bin/completion/dconf: Add compile to autocomplete
    
    While working with Dconf I noticed in the bash CLI
    I was unable to autocomplete when typing "dconf compile"
    
    This fix will make it so the user is able to auto complete
    the compile option in bash.
    I have tested it on my Manjaro and PopOS! machines
    and it's working expected.
    
    As this is my first contribution please look twice so I have
    not missed anything.
    
    Signed-off-by: Andreas Polnas <andreas polnas93 hotmail com>

 bin/completion/dconf | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/bin/completion/dconf b/bin/completion/dconf
index 22353b7a..64963972 100644
--- a/bin/completion/dconf
+++ b/bin/completion/dconf
@@ -9,13 +9,13 @@ __dconf() {
 
   case "${COMP_CWORD}" in
     1)
-      choices=$'help \nread \nlist \nwrite \nreset \nupdate \nlock \nunlock \nwatch \ndump \nload '
+      choices=$'help \nread \nlist \nwrite \nreset \nupdate \nlock \nunlock \nwatch \ndump \nload \ncompile '
       ;;
 
     2)
       case "${COMP_WORDS[1]}" in
         help)
-          choices=$'help \nread \nlist \nwrite \nreset \nupdate \nlock \nunlock \nwatch \ndump \nload '
+          choices=$'help \nread \nlist \nwrite \nreset \nupdate \nlock \nunlock \nwatch \ndump \nload 
\ncompile '
           ;;
         list|dump|load)
           choices="$(dconf _complete / "${COMP_WORDS[2]}")"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]