-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMicrosoft.PowerShell_profile.ps1
More file actions
27 lines (24 loc) · 1.22 KB
/
Microsoft.PowerShell_profile.ps1
File metadata and controls
27 lines (24 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
######################################################################################
Write-Host "Starting module load sequence..." -ForegroundColor Red
Write-Host "Loading ASCI PowerShell Extensions" -ForegroundColor Green
Import-Module "C:\Workspaces\PowerShell\Modules\ASCIPowershellExtensions\ASCIPowershellExtensions.psm1"
#Write-Host "Loading DeployKitsFramework" -ForegroundColor Green
#Import-Module "C:\Workspaces\Extensions\PowerShell\Modules\DeployKitsFramework"
Write-Host "Module load sequence complete!" -ForegroundColor Red
######################################################################################
# Chocolatey profile
$ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
if (Test-Path($ChocolateyProfile)) {
Import-Module "$ChocolateyProfile"
}
######################################################################################
# Load VSDEV Variables
Write-Host "`nBegin VSDEVCMD Load Sequence" -ForegroundColor Yellow
pushd "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools"
cmd /c "VsDevCmd.bat&set" |
foreach {
if ($_ -match "=") {
$v = $_.split("="); set-item -force -path "ENV:\$($v[0])" -value "$($v[1])"
}
}
popd