From dc834cc28f7960cc3c2ce9eed70c1d4cdf486eec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Colombaro?= Date: Wed, 17 Sep 2014 15:07:34 +0200 Subject: [PATCH] Fixes Powershell loader issues * Fix modules order required * Add newline before prompt * Fix color name --- vendor/profile.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vendor/profile.ps1 b/vendor/profile.ps1 index 0c5a7c3ad..72957173b 100644 --- a/vendor/profile.ps1 +++ b/vendor/profile.ps1 @@ -5,8 +5,8 @@ $global:PsGetDestinationModulePath = $PSScriptRoot + "\..\vendor\psmodules" Push-Location -Path ($PsGetDestinationModulePath) # Load modules from current directory -Get-ChildItem -Directory | ` -Foreach-Object{ +Import-Module .\PsGet\PsGet +Get-ChildItem -Exclude "PsGet" -Directory -Name | Foreach-Object { Import-Module .\$_\$_ } @@ -16,8 +16,8 @@ Pop-Location # Set up a Cmder prompt, adding the git prompt parts inside git repos function global:prompt { $realLASTEXITCODE = $LASTEXITCODE - $Host.UI.RawUI.ForegroundColor = "white" - Write-Host($pwd.ProviderPath) -NoNewLine -ForegroundColor "green" + $Host.UI.RawUI.ForegroundColor = "White" + Write-Host("`n" + $pwd.ProviderPath) -NoNewLine -ForegroundColor Green if (Get-Module posh-git) { Write-VcsStatus }