Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
My Windows Terminal Settings profile with elevated prompt for PowerShell via gsudo.
// latest version is now here:
// https://github.com/thushan/dotfiles/blob/main/windows/windows-terminal/settings.json
@JohnLGalt
Copy link

JohnLGalt commented May 4, 2021

Nice. I ran across this blog post to accomplish pretty much the same thing.

I created 2 sets on modifications for both PowerShell and CMD in Terminal Preview, one with gsudo and one with gsudo -s (giving highest privileges, as System). Just in case I ever need such abominably high privileges on the machine.

@thushan
Copy link
Author

thushan commented Feb 27, 2022

Great idea @JohnLGalt, I've moved my terminal settings to git under a proper dotfiless now.

Using gsudo makes life a lot easier until elevation is supported natively on Windows Terminal.

@JohnLGalt
Copy link

JohnLGalt commented Feb 27, 2022

Agreed. Nice move to the git, that should help some folks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment