Last active
March 25, 2024 16:38
-
-
Save kateinoigakukun/2b7c360b023830f7fdfafceedbc31c4b to your computer and use it in GitHub Desktop.
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 PSReadLine | |
Set-PSReadlineOption -EditMode Emacs | |
function Activate-Git { | |
$env:path += ";C:\Program Files\Git\bin\" | |
} | |
function Activate-VSToolchain { | |
$installPath = &"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -version 16.0 -property installationpath | |
Import-Module (Join-Path $installPath "Common7\Tools\Microsoft.VisualStudio.DevShell.dll") | |
Enter-VsDevShell -VsInstallPath $installPath -SkipAutomaticLocation -DevCmdArguments -arch=x64 | |
$env:path += ";" + $installPath + "\VC\Tools\Llvm\bin" | |
} | |
Activate-Git | |
Activate-VSToolchain |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment