Fix Alias issue in kubectl page

You can't just set alias the way I thought you could so using function instead to create alias.
pull/12980/head
Marcus Puckett 2021-11-17 17:29:17 -08:00
parent 8b0fbf1e06
commit b0ce8ae348
1 changed files with 1 additions and 7 deletions

View File

@ -52,13 +52,7 @@ ln -s $(which minikube) /usr/local/bin/kubectl
You can also alias kubectl for easier usage.
```shell
Set-Alias -Name "kubectl" -Value "minikube kubectl --"
```
Alternatively, you can create a symbolic link to minikube's binary named 'kubectl'.
```shell
New-Item -Path (Get-Command minikube).Path -ItemType SymbolicLink -Value C:\minikube\minikube.exe
function kubectl { minikube kubectl -- $args }
```
{{% /windowstab %}}