Skip to content
Kosh Docs

kosh completion

Generate the shell autocompletion script for bash, zsh, fish or powershell.

Generate the autocompletion script for the specified shell.

Terminal window
kosh completion [bash|zsh|fish|powershell]

Arguments: exactly one — the shell name.

Terminal window
# zsh
kosh completion zsh > "${fpath[1]}/_kosh"
# bash
kosh completion bash > /etc/bash_completion.d/kosh
# fish
kosh completion fish > ~/.config/fish/completions/kosh.fish

Run kosh completion <shell> --help for the exact installation steps for your shell — they differ between systems, and the built-in help is kept current.