Sudo for Windows

Wow. Sudo for Windows is here! See the official announcement in a Microsoft Devblogs here. Sudo for Windows is a new way for users to run elevated commands directly from an unelevated console session. It is an ergonomic and familiar solution for users who want to elevate a command without having to first open a new elevated console. I gave it a try, and it seems to be doing what it says on the tin....

Nifty Powershell Functions and Aliases

I thought I’d share some of the Powershell functions and aliases I’ve found useful over the years. I’ll try to keep this post updated as I find new ones. Powershell Aliases Most of the aliases below are pretty self-explanatory. They are just shortcuts to common commands. 1 2 3 4 5 6 7 8 9 10 Set-Alias -Name tf -Value terraform Set-Alias -Name k -Value kubectl Set-Alias -Name tt -Value tree Set-Alias -Name ll -Value ls Set-Alias -Name g -Value git Set-Alias -Name vim -Value nvim Set-Alias -Name np -Value 'C:\Windows\notepad....

January 22, 2024 · 3 min · 502 words · Oliver Gulich ·  PowerShell

Interacting with Conda in PowerShell

If you want to be able to use conda in PowerShell, you need to add the conda scripts to your path. You can do this by running the following command in PowerShell: 1 $env:Path += ";C:\Users\USERNAME\Anaconda3\Scripts" Next, you want to run Anaconda Prompt as administrator. You can do this by right-clicking on the Anaconda Prompt icon and selecting “Run as administrator”. Execute the following command in Anaconda Prompt to register conda with PowerShell:...