Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new instruction to permanently enable completion in the [bash|zsh|fish] shell #1967

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions cmd/completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,14 @@ var completion = &cobra.Command{

Auto completion supports bash, zsh and fish. Output is to STDOUT.

source <(kompose completion bash)
source <(kompose completion zsh)
kompose completion fish | source
# Enable auto-completion in bash
echo "source <(kompose completion bash)" >> $HOME/.bashrc

# Enable auto-completion in zsh
echo "source <(kompose completion zsh)" >> $HOME/.zshrc

# Enable auto-completion in fish
echo "kompose completion fish | source" >> $HOME/.config/fish/config.fish

Will load the shell completion code.
`,
Expand Down
Loading