Skip to content

Commit

Permalink
Fix PSReadline clearing directory prompt.
Browse files Browse the repository at this point in the history
If user has PSReadline and is using it be sure to clear 1 less line to prevent the directory prompt from being cleared.

Fixes cmderdev#879
  • Loading branch information
MartiUK authored and sonictk committed May 21, 2016
1 parent 9ca9fdc commit d1bde50
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vendor/profile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ if ( $ENV:CMDER_START ) {
Set-Location -Path "$ENV:CMDER_START"
}

if (Get-Module PSReadline -ErrorAction "SilentlyContinue") {
Set-PSReadlineOption -ExtraPromptLineCount 1
}

# Enhance Path
$env:Path = "$Env:CMDER_ROOT\bin;$env:Path;$Env:CMDER_ROOT"

Expand Down

0 comments on commit d1bde50

Please sign in to comment.