cscli: update completion doc (fix #841) (#846)

* cscli: update completion doc (fix #841)
This commit is contained in:
he2ss 2021-07-01 15:03:48 +02:00 committed by GitHub
parent 1d21679b3f
commit 1b39893fcf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,6 +28,13 @@ func NewCompletionCmd() *cobra.Command {
$ cscli completion bash | sudo tee /usr/local/etc/bash_completion.d/cscli
# Troubleshoot:
If you have this error (bash: _get_comp_words_by_ref: command not found), it seems that you need "bash-completion" dependency :
* Install bash-completion package
$ source /etc/profile
$ source <(cscli completion bash)
### Zsh:
# If shell completion is not already enabled in your environment,