Skip to content

Instantly share code, notes, and snippets.

@thushan
Last active February 27, 2022 14:02
Show Gist options
  • Save thushan/90e9b0fb8b9cbc8eca674509a026adeb to your computer and use it in GitHub Desktop.
Save thushan/90e9b0fb8b9cbc8eca674509a026adeb to your computer and use it in GitHub Desktop.
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

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

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