Skip to content

erichiller/PSSudo

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 3 commits ahead, 7 commits behind ecsousa:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

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).

About

Fancy script to execute things elevated

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 100.0%