Last active
July 26, 2022 19:54
-
-
Save sblom/7951222 to your computer and use it in GitHub Desktop.
Crazy hack to extract the GitHub for Windows %PATH% modifications out of shell.ps1 for use in cmd.exe.
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
for /f "usebackq delims=*" %%p in (`powershell -ExecutionPolicy RemoteSigned -Command "& { . $env:LOCALAPPDATA\GitHub\shell.ps1 ; echo $env:path }"`) do set path=%%p |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment