Skip to content

Instantly share code, notes, and snippets.

@leandrocrs
Created June 13, 2019 05:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leandrocrs/2295fb9e76e3210b8d566d0e0b46bb98 to your computer and use it in GitHub Desktop.
Save leandrocrs/2295fb9e76e3210b8d566d0e0b46bb98 to your computer and use it in GitHub Desktop.
PowerShell Core Profile
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