Skip to content

Commit

Permalink
Fixes Powershell loader issues
Browse files Browse the repository at this point in the history
* Fix modules order required
* Add newline before prompt
* Fix color name
  • Loading branch information
LeoColomb committed Dec 1, 2014
1 parent f5eb662 commit dc834cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vendor/profile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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 .\$_\$_
}

Expand All @@ -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
}
Expand Down

0 comments on commit dc834cc

Please sign in to comment.