Thursday, May 07, 2020

Trick : Adding path/shortcuts to current powershell terminal session

Sometimes you feel lazy to close your powershell window/terminal after having installed a package.
Like recently I installed the kubectl package for connecting and managing AKS deployments and monitoring. And it required one to install/execute :

curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.18.0/bin/windows/amd64/kubectl.exe

After installing the kubectl package , however kubectl is not directly available to your currently running powershell or terminal session. if you do try to run the kubectl command, it would show the error : 



C:\projects\aks_car_mechanic\apps>kubectl
'kubectl' is not recognized as an internal or external command,

operable program or batch file.

One remedy is to exit your powershell terminals and the other trick is to add the path to the PATH env variable and to do this, you should run 
$env:Path += 'C:\Users\<username>\.azure-kubectl'

Section 80C TMT 2023(PA) – Standard Deduction amounting to a maximum of Rs 8670 under IT rule

With the recently concluded Tax filing season (which if I may draw parallel to the Christmas holiday season enjoyed by one and all), Indians...