Fancy script to execute things elevated
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 3 commits ahead, 6 commits behind ecsousa:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Invoke-ElevatedCommand.ps1
PSSudo.psd1
PSSudo.psm1
README.md

README.md

PSSudo

Fork from https://github.com/ecsousa/PSSudo

Modifications:

  1. -cur_console for sudo <arguments> so that elevated PowerShell in ConEmu runs in the same window/tab/console (not possible)
  2. When checking for Aliases, use Ignore as the -ErrorAction so that errors are not detected in oh-my-posh templates
  3. Added f--k, allowing for sudo !! fuctionality - executing the last command in elevated mode.
  4. Added Invoke-ElevatedCommand for executing an inline script block (that is, it can be executed within a pipeline).