mirror of
				https://github.com/cmderdev/cmder.git
				synced 2025-10-31 01:12:11 +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:
		
							
								
								
									
										4
									
								
								vendor/profile.ps1
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								vendor/profile.ps1
									
									
									
									
										vendored
									
									
								
							| @@ -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" | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user