You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's how minikube supports this as part of its binary:
$ minikube help completion
Outputs minikube shell completion for the given shell (bash, zsh or fish)
This depends on the bash-completion binary. Example installation instructions:
OS X:
$ brew install bash-completion
$ source$(brew --prefix)/etc/bash_completion
$ 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 sourcein your .bashrc
Note forzsh users: [1] zsh completions are only supportedin versions of zsh >= 5.2
Note for fish users: [2] please refer to this docs for more details https://fishshell.com/docs/current/#tab-completion
Usage:
minikube completion SHELL [flags] [options]
Use "minikube options"for a list of global command-line options (applies to all commands).
zsv may also support shell command completion as part of its binary.
Once we have consistent formatting for all the commands then this can simply be automated at runtime.
The completion script can provide the suggestions at runtime using the help text.
Currently, the help text differs from command to command as reported under #154.
Here's how
minikube
supports this as part of its binary:zsv
may also support shell command completion as part of its binary.Here's a small PoC for Bash: https://github.com/iamazeem/zsv-bash-completion
Demo:
The text was updated successfully, but these errors were encountered: