Created
November 13, 2015 05:39
-
-
Save hyrmn/cf321c8bd5a7c96f23e3 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
| function prompt | |
| { | |
| $(get-location) + "> " | |
| } | |
| function Get-Batchfile ($file) { | |
| $cmd = "`"$file`" & set" | |
| cmd /c $cmd | Foreach-Object { | |
| $p, $v = $_.split('=') | |
| Set-Item -path env:$p -value $v | |
| } | |
| } | |
| function Load-VsTools() | |
| { | |
| $batchFile = [System.IO.Path]::Combine($env:VS120COMNTOOLS, "VsDevCmd.bat") | |
| Get-Batchfile -file $batchFile | |
| Write-Host -ForegroundColor 'Yellow' "VsVars has been loaded from: $batchFile" | |
| } | |
| $env:path += ";" + (Get-Item "Env:ProgramFiles(x86)").Value + "\Git\bin" | |
| # Load posh-git profile | |
| . 'C:\Users\Ben\Documents\WindowsPowerShell\Modules\posh-git\profile.ps1' | |
| # Load up crumb | |
| . 'C:\Users\Ben\Documents\WindowsPowerShell\crumbs.ps1' | |
| Load-VsTools | |
| set-location e:\code\rezstream |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment