/etc/bash_completion.d/herbstclient-completion is in herbstluftwm 0.6.2-1.
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 | # bash completion for herbstclient
_herbstclient_complete() {
local IFS=$'\n'
# do not split at =, because BASH would not split at a '='.
COMP_WORDBREAKS=${COMP_WORDBREAKS//=}
COMPREPLY=(
# just call the herbstclient complete .. but without herbstclient as argument
$(herbstclient -q complete_shell "$((COMP_CWORD-1))" "${COMP_WORDS[@]:1}")
)
}
complete -F _herbstclient_complete -o nospace herbstclient
|