windows上的包管理器
WinGet
Chocolatey
Scoop
windows下使用gsudo实现sudo一样的命令
安装gsudo
winget install gerardog.gsudo
choco install gsudo
scoop install gsudo
直接使用PowerShell安装
PowerShell -Command "Set-ExecutionPolicy RemoteSigned -scope Process; [Net.ServicePointManager]::SecurityProtocol = 'Tls12'; iwr -useb https://raw.githubusercontent.com/gerardog/gsudo/master/installgsudo.ps1 | iex"
可以直接使用gsudo的别名sudo
评论区