-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
question about usage WingetPathUpdater usage with gsudo #4
Comments
That's a good question. The same principles described in the main ReadMe would apply here:
You could do it manually, using the code in WingetHelper.ps1. Take a look at the code in Winget.ps1 for how it is used. If you wanted to make Out of curiosity, where do you get |
https://github.com/gerardog/gsudo, very convenient software. |
I see that gsudo already has a PowerShell module... it should be trivial for someone to port the functionality of this project to that one. (Wouldn't help if you use gsudo from one of the other shells it supports, but it probably wouldn't be too bad to handle those, too, the same way that Winget.cmd does it.) |
For example, i will do
sudo { winget install Python.Python.3 }
with https://github.com/gerardog/gsudo to avoid uac (I have cache enabled), python will be installed, but the problem is, path will be reloaded in sudo { } scope, so I will still need to restart terminal in order to use python, is it possible to update env outside of sudo scope?The text was updated successfully, but these errors were encountered: