Last active
March 12, 2016 18:07
-
-
Save BillWagner/2133d86b119cf60f0298 to your computer and use it in GitHub Desktop.
Profile.ps1 that adds VS tools path and git tools path to your shell.
This file contains 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
"Setting VS 2015 Vars" | |
#Set environment variables for Visual Studio Command Prompt | |
pushd 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools' | |
cmd /c "vsvars32.bat&set" | | |
foreach { | |
if ($_ -match "=") { | |
$v = $_.split("="); set-item -force -path "ENV:\$($v[0])" -value "$($v[1])" | |
} | |
} | |
popd | |
write-host "`nVisual Studio 2015 Command Prompt variables set." -ForegroundColor Yellow | |
"Loading PoshGit..." | |
. (Resolve-Path "$env:LOCALAPPDATA\GitHub\shell.ps1") | |
. $env:github_posh_git\profile.example.ps1 | |
#set the Git POSH colors to something easy to see against a blue background | |
$global:GitPromptSettings.WorkingForegroundColor = [ConsoleColor]::Red | |
$global:GitPromptSettings.UntrackedForegroundColor = [ConsoleColor]::Red | |
$global:GitPromptSettings.BeforeIndexForegroundColor= [ConsoleColor]::Cyan | |
$global:GitPromptSettings.IndexForegroundColor = [ConsoleColor]::Cyan | |
$global:GitPromptSettings.WorkingForegroundColor = [ConsoleColor]::DarkYellow | |
$global:GitPromptSettings.UntrackedForegroundColor = [ConsoleColor]::DarkYellow | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment