completion
¶
The completion command dumps the shell completion script required to use shell autocompletion (currently only bash completion is supported).
Usage: completion [options] [--] [<shell>]
Arguments¶
shell
-
The shell type (e.g. "
bash
"), the value of the$SHELL
env var will be used if this is not given.
Options¶
--debug
- Tail the completion debug log
-h, --help
- Display help for the command.
Dump the script to a global completion file and restart your shell:
bin/phpcq completion bash | sudo tee /etc/bash_completion.d/phpcq
Or dump the script to a local file and source it:
bin/phpcq completion bash > completion.sh
source completion.sh
~/.bashrc
" file:
source /path/to/completion.sh
Add this to the end of your shell configuration file (e.g. "~/.bashrc"):
eval "$(/path/to/bin/phpcq completion bash)"