diff options
author | Andreas Polnas <andreas.polnas93@hotmail.com> | 2020-07-15 19:00:42 +0200 |
---|---|---|
committer | Andreas Polnas <andreas.polnas93@hotmail.com> | 2020-07-15 19:00:42 +0200 |
commit | 770907e7a2da2e34df170ed2cf7aec07e387d7cd (patch) | |
tree | 722929057f1a37f5a2379faf35d977d1fd489e48 /bin | |
parent | e484dc9774bf439798a87efaaca1e2f195e4b027 (diff) | |
download | dconf-770907e7a2da2e34df170ed2cf7aec07e387d7cd.tar.gz |
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>
Diffstat (limited to 'bin')
-rw-r--r-- | bin/completion/dconf | 4 |
1 files 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]}")" |