Skip to content

PowerShell

Become Administrator

Terminal window
start-process PowerShell -verb runas
Terminal window
cmd /c mklink /D "C:\Users\m\Projects" "\\wsl.localhost\Ubuntu-24.04\home\kayaman\Projects"

Add to Path

Terminal window
$oldPath = [Environment]::GetEnvironmentVariable('Path', [EnvironmentVariableTarget]::Machine)
if ($oldPath.Split(';') -inotcontains 'C:\minikube'){
[Environment]::SetEnvironmentVariable('Path', $('{0};C:\minikube' -f $oldPath), [EnvironmentVariableTarget]::Machine)
}

Create aliases

Terminal window
code $PROFILE
Microsoft_Powershell_profile.ps1
Set-Alias -Name tf -Value terraform
Set-Alias -Name k -Value kubectl