-
Notifications
You must be signed in to change notification settings - Fork 432
completion command
Efe Karakus edited this page Jun 25, 2020
·
5 revisions
$ copilot completion [shell] [flags]
copilot completion
prints shell completion code for bash or zsh. The code must be evaluated to provide interactive completion of commands.
See the help menu for instructions on how to setup auto-completion for your respective shell.
-h, --help help for completion
Install zsh completion.
$ source <(copilot completion zsh)
$ copilot completion zsh > "${fpath[1]}/_copilot" # to autoload on startup
Install bash completion on macOS using homebrew.
$ brew install bash-completion # if running 3.2
$ brew install bash-completion@2 # if running Bash 4.1+
$ copilot completion bash > /usr/local/etc/bash_completion.d
Install bash completion on linux
$ source <(copilot completion bash)
$ copilot completion bash > copilot.sh
$ sudo mv copilot.sh /etc/bash_completion.d/copilot