/usr/share/bash-completion/completions/dconf is in dconf-cli 0.24.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | # Check for bash
[ -z "$BASH_VERSION" ] && return
####################################################################################################
__dconf() {
local choices
case "${COMP_CWORD}" in
1)
choices=$'help \nread \nlist \nwrite \nreset\n update \nlock \nunlock \nwatch \ndump \nload '
;;
2)
case "${COMP_WORDS[1]}" in
help)
choices=$'help \nread \nlist \nwrite \nreset\n update \nlock \nunlock \nwatch \ndump \nload '
;;
list|dump|load)
choices="$(dconf _complete / "${COMP_WORDS[2]}")"
;;
read|list|write|lock|unlock|watch|reset)
choices="$(dconf _complete '' "${COMP_WORDS[2]}")"
;;
esac
;;
3)
case "${COMP_WORDS[1]} ${COMP_WORDS[2]}" in
reset\ -f)
choices="$(dconf _complete '' "${COMP_WORDS[3]}")"
;;
esac
;;
esac
local IFS=$'\n'
COMPREPLY=($(compgen -W "${choices}" "${COMP_WORDS[$COMP_CWORD]}"))
}
####################################################################################################
complete -o nospace -F __dconf dconf
|