From 770907e7a2da2e34df170ed2cf7aec07e387d7cd Mon Sep 17 00:00:00 2001 From: Andreas Polnas Date: Wed, 15 Jul 2020 19:00:42 +0200 Subject: 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 --- bin/completion/dconf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/completion/dconf b/bin/completion/dconf index 22353b7..6496397 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]}")" -- cgit v1.2.1