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 #879
  • Loading branch information
MartiUK committed Mar 10, 2016
1 parent 7d21970 commit 05c113e
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 05c113e

Please sign in to comment.