Skip to content

Commit

Permalink
Updated the completion command to print it out in the config file of …
Browse files Browse the repository at this point in the history
…the shell

Signed-off-by: utkarshsingh1 <[email protected]>
  • Loading branch information
utkarsh-singh1 committed Jan 8, 2025
1 parent cd6dc39 commit 5cdf631
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ var completion = &cobra.Command{
Auto completion supports bash, zsh and fish. Output is to STDOUT.
# Enable auto-completion in bash
source <(kompose completion bash)
echo "source <(kompose completion bash)" >> $HOME/.bashrc
# Enable auto-completion in zsh
source <(kompose completion zsh)
echo "source <(kompose completion zsh)" >> $HOME/.zshrc
# Enable auto-completion in fish
kompose completion fish | source
echo "kompose completion fish | source" >> $HOME/fish/config.fish
Will load the shell completion code.
Expand Down

0 comments on commit 5cdf631

Please sign in to comment.