Skip to content

Commit

Permalink
Update docs with sample command for fish users
Browse files Browse the repository at this point in the history
  • Loading branch information
sayboras committed Apr 19, 2020
1 parent 4f088bf commit d184683
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions cmd/minikube/cmd/completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions site/content/en/docs/commands/completion.md
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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

Expand Down

0 comments on commit d184683

Please sign in to comment.