ref!: replace pathman with PowerShell [Environment]::SetEnvironmentVariable

This commit is contained in:
AJ ONeal
2023-05-09 00:04:59 +00:00
parent ba4571ec35
commit efb67109fb
12 changed files with 84 additions and 74 deletions
-3
View File
@@ -5,8 +5,5 @@ echo "Installing sudo.cmd..."
# Couldn't figure out how to get this to work with "here strings", so forgive the ugly, but at least it works
Set-Content -Path .local\bin\sudo.cmd -Value "@echo off`r`npowershell -Command ""Start-Process cmd -Verb RunAs -ArgumentList '/c cd /d %CD% && %*'""`r`n@echo on"
# Add to path
& "$Env:USERPROFILE\.local\bin\pathman.exe" add ~/.local/bin
echo "Installed to '$Env:USERPROFILE\.local\bin\sudo.cmd'"
echo ""