Skip to content

Completion

ctx

ctx completion

Generate shell autocompletion scripts.

ctx completion <shell>

Subcommands

Shell Command
bash ctx completion bash
zsh ctx completion zsh
fish ctx completion fish
powershell ctx completion powershell

Examples:

ctx completion bash > /etc/bash_completion.d/ctx
ctx completion zsh  > "${fpath[1]}/_ctx"
ctx completion fish > ~/.config/fish/completions/ctx.fish
ctx completion powershell | Out-String | Invoke-Expression

Installation

# Add to ~/.bashrc
source <(ctx completion bash)
# Add to ~/.zshrc
source <(ctx completion zsh)
ctx completion fish | source
# Or save to completions directory
ctx completion fish > ~/.config/fish/completions/ctx.fish
# Add to your PowerShell profile
ctx completion powershell | Out-String | Invoke-Expression