From b0ce8ae348bfad890de62d153259734eba5dacbc Mon Sep 17 00:00:00 2001 From: Marcus Puckett Date: Wed, 17 Nov 2021 17:29:17 -0800 Subject: [PATCH] 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. --- site/content/en/docs/handbook/kubectl.md | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/site/content/en/docs/handbook/kubectl.md b/site/content/en/docs/handbook/kubectl.md index fcdcb5e539..592706526a 100644 --- a/site/content/en/docs/handbook/kubectl.md +++ b/site/content/en/docs/handbook/kubectl.md @@ -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 %}}