builtin
complete
Register, inspect or remove completion specifications.
Formal Syntax & Structure
bash syntaxbash
complete -W wordlist name; complete -p name; complete -r nameReturn Value
exit status
Register, inspect or remove completion specifications.
Working Example
Example Snippetbash
complete -W 'start stop status' bmtoolcomplete -p bmtool >/dev/null || exit 1compopt -o nospace bmtool || exit 1complete -r bmtoolif complete -p bmtool >/dev/null 2>&1; then exit 1; fiprintf 'registered, updated, removed\n'