diff --git a/cmd/minikube/cmd/completion.go b/cmd/minikube/cmd/completion.go index 5f8fb2c81d13..19ffe4d5f7ec 100644 --- a/cmd/minikube/cmd/completion.go +++ b/cmd/minikube/cmd/completion.go @@ -36,11 +36,13 @@ const longDescription = ` $ minikube completion bash > ~/.minikube-completion # for bash users $ minikube completion zsh > ~/.minikube-completion # for zsh users $ source ~/.minikube-completion + $ minikube completion fish > ~/.config/fish/completions/minikube.fish # for fish users Ubuntu: $ apt-get install bash-completion $ source /etc/bash-completion $ source <(minikube completion bash) # for bash users $ source <(minikube completion zsh) # for zsh users + $ minikube completion fish > ~/.config/fish/completions/minikube.fish # for fish users Additionally, you may want to output the completion to a file and source in your .bashrc diff --git a/site/content/en/docs/commands/completion.md b/site/content/en/docs/commands/completion.md index 2300f6c22619..8557cc068b0a 100644 --- a/site/content/en/docs/commands/completion.md +++ b/site/content/en/docs/commands/completion.md @@ -1,14 +1,14 @@ --- title: "completion" description: > - Outputs minikube shell completion for the given shell (bash or zsh) + Outputs minikube shell completion for the given shell (bash, zsh or fish) --- ## minikube completion -Outputs minikube shell completion for the given shell (bash or zsh) +Outputs minikube shell completion for the given shell (bash, zsh or fish) ### Synopsis @@ -22,11 +22,13 @@ Outputs minikube shell completion for the given shell (bash or zsh) $ minikube completion bash > ~/.minikube-completion # for bash users $ minikube completion zsh > ~/.minikube-completion # for zsh users $ source ~/.minikube-completion + $ minikube completion fish > ~/.config/fish/completions/minikube.fish # for fish users Ubuntu: $ apt-get install bash-completion $ source /etc/bash-completion $ source <(minikube completion bash) # for bash users $ source <(minikube completion zsh) # for zsh users + $ minikube completion fish > ~/.config/fish/completions/minikube.fish # for fish users Additionally, you may want to output the completion to a file and source in your .bashrc