docs: quote PowerShell completion script path ($HOME may contain spaces)

This commit is contained in:
Thomas Hein
2025-10-18 04:19:32 -05:00
parent 0f6bc57d11
commit d7b83193c4

View File

@@ -102,8 +102,8 @@ var (
kubectl completion powershell | Out-String | Invoke-Expression
# Set kubectl completion code for powershell to run on startup
## Save completion code to a script and execute in the profile
kubectl completion powershell > $HOME\.kube\completion.ps1
Add-Content $PROFILE ". $HOME\.kube\completion.ps1"
kubectl completion powershell > "$HOME\.kube\completion.ps1"
Add-Content $PROFILE ". '$HOME\.kube\completion.ps1'"
## Execute completion code in the profile
Add-Content $PROFILE "if (Get-Command kubectl -ErrorAction SilentlyContinue) {
kubectl completion powershell | Out-String | Invoke-Expression