Created
June 13, 2019 05:48
-
-
Save leandrocrs/2295fb9e76e3210b8d566d0e0b46bb98 to your computer and use it in GitHub Desktop.
PowerShell Core Profile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Import-Module oh-my-posh | |
function elevate-process | |
{ | |
$file, [string]$arguments = $args; | |
$psi = new-object System.Diagnostics.ProcessStartInfo $file; | |
$psi.Arguments = $arguments; | |
$psi.Verb = "runas"; | |
$psi.WorkingDirectory = get-location; | |
[System.Diagnostics.Process]::Start($psi); | |
} | |
Set-Alias sudo elevate-process; | |
Set-Alias dco docker-compose; | |
Set-Alias vim nvim; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment