mirror of
https://github.com/cmderdev/cmder.git
synced 2025-04-18 07:32:30 +08:00
Fix PSReadline clearing directory prompt.
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
This commit is contained in:
parent
7d2197086e
commit
05c113efee
4
vendor/profile.ps1
vendored
4
vendor/profile.ps1
vendored
@ -88,6 +88,10 @@ if ( $ENV:CMDER_START ) {
|
|||||||
Set-Location -Path "$ENV:CMDER_START"
|
Set-Location -Path "$ENV:CMDER_START"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Get-Module PSReadline -ErrorAction "SilentlyContinue") {
|
||||||
|
Set-PSReadlineOption -ExtraPromptLineCount 1
|
||||||
|
}
|
||||||
|
|
||||||
# Enhance Path
|
# Enhance Path
|
||||||
$env:Path = "$Env:CMDER_ROOT\bin;$env:Path;$Env:CMDER_ROOT"
|
$env:Path = "$Env:CMDER_ROOT\bin;$env:Path;$Env:CMDER_ROOT"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user