Skip to content

Instantly share code, notes, and snippets.

@johnfredcee
Created November 14, 2020 13:07
Show Gist options
  • Save johnfredcee/182848c89ceb1a39b3e570370b9f1a3c to your computer and use it in GitHub Desktop.
Save johnfredcee/182848c89ceb1a39b3e570370b9f1a3c to your computer and use it in GitHub Desktop.
$scope = "Process"
$pathElements = @([Environment]::GetEnvironmentVariable("PATH", $scope) -split ";")
$pathElements += "D:\Dev\msys64\mingw64\bin"
$pathElements += "D:\Dev\msys64\usr\bin"
$newPath = $pathElements -join ";"
[Environment]::SetEnvironmentVariable("PATH", $newPath, $scope)
[System.Diagnostics.Process]::Start("D:\Apps\emacs\bin\runemacs.exe", "--debug-init");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment