Skip to content

Instantly share code, notes, and snippets.

@mjul
Last active November 15, 2018 18:31
Show Gist options
  • Save mjul/5831679 to your computer and use it in GitHub Desktop.
Save mjul/5831679 to your computer and use it in GitHub Desktop.
Visual Studio 2013 developer prompt for PowerShell
pushd 'c:\Program Files (x86)\Microsoft Visual Studio 12.0\VC'
cmd /c "vcvarsall.bat&set" |
foreach {
if ($_ -match "=") {
$v = $_.split("="); set-item -force -path "ENV:\$($v[0])" -value "$($v[1])"
}
}
popd
write-host "`nVisual Studio 2013 Command Prompt variables set." -ForegroundColor Yellow
# Enable git support via GitHub client
. (Resolve-Path "$env:LOCALAPPDATA\GitHub\shell.ps1")
@samilamti
Copy link

Thanks :)

@mjul
Copy link
Author

mjul commented Sep 4, 2015

FYI, you can find the location of the PowerShell profile in the $profile variable like so,

echo $profile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment