Skip to content

Commit d184683

Browse files
committed
Update docs with sample command for fish users
1 parent 4f088bf commit d184683

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

cmd/minikube/cmd/completion.go

+2
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,13 @@ const longDescription = `
3636
$ minikube completion bash > ~/.minikube-completion # for bash users
3737
$ minikube completion zsh > ~/.minikube-completion # for zsh users
3838
$ source ~/.minikube-completion
39+
$ minikube completion fish > ~/.config/fish/completions/minikube.fish # for fish users
3940
Ubuntu:
4041
$ apt-get install bash-completion
4142
$ source /etc/bash-completion
4243
$ source <(minikube completion bash) # for bash users
4344
$ source <(minikube completion zsh) # for zsh users
45+
$ minikube completion fish > ~/.config/fish/completions/minikube.fish # for fish users
4446
4547
Additionally, you may want to output the completion to a file and source in your .bashrc
4648

site/content/en/docs/commands/completion.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
title: "completion"
33
description: >
4-
Outputs minikube shell completion for the given shell (bash or zsh)
4+
Outputs minikube shell completion for the given shell (bash, zsh or fish)
55
---
66

77

88

99
## minikube completion
1010

11-
Outputs minikube shell completion for the given shell (bash or zsh)
11+
Outputs minikube shell completion for the given shell (bash, zsh or fish)
1212

1313
### Synopsis
1414

@@ -22,11 +22,13 @@ Outputs minikube shell completion for the given shell (bash or zsh)
2222
$ minikube completion bash > ~/.minikube-completion # for bash users
2323
$ minikube completion zsh > ~/.minikube-completion # for zsh users
2424
$ source ~/.minikube-completion
25+
$ minikube completion fish > ~/.config/fish/completions/minikube.fish # for fish users
2526
Ubuntu:
2627
$ apt-get install bash-completion
2728
$ source /etc/bash-completion
2829
$ source <(minikube completion bash) # for bash users
2930
$ source <(minikube completion zsh) # for zsh users
31+
$ minikube completion fish > ~/.config/fish/completions/minikube.fish # for fish users
3032

3133
Additionally, you may want to output the completion to a file and source in your .bashrc
3234

0 commit comments

Comments
 (0)