Skip to content

Instantly share code, notes, and snippets.

@paulomorgado
Created June 12, 2018 07:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulomorgado/6f7724227f518d44c0d4ce1d07baa2be to your computer and use it in GitHub Desktop.
Save paulomorgado/6f7724227f518d44c0d4ce1d07baa2be to your computer and use it in GitHub Desktop.
Developer PowerShell for VS2017
cmd.exe /c '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\VsDevCmd.bat" && set' |
Out-String -Stream | Select-String -Pattern '^(.*?)=(.*)$' |
ForEach-Object { Set-Content -Path "env:$($_.Matches.Groups[1].Value)" -Value $_.Matches.Groups[2].Value }
Import-Module posh-git
Set-PSReadlineOption -HistoryNoDuplicates -ShowToolTips -BellStyle Visual
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment