Skip to content

Instantly share code, notes, and snippets.

@kateinoigakukun
Last active March 25, 2024 16:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kateinoigakukun/2b7c360b023830f7fdfafceedbc31c4b to your computer and use it in GitHub Desktop.
Save kateinoigakukun/2b7c360b023830f7fdfafceedbc31c4b to your computer and use it in GitHub Desktop.
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