-
-
Notifications
You must be signed in to change notification settings - Fork 811
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cann't Show status in PowerShell 5.0 on Window 7 #360
Comments
The version of posh-git on the PSGallery hasn't been updated in a while. With posh-git 0.7.0 (coming soon) prompt modification will be automatic for most folks that import the module (unless you have already overridden the prompt function). For now, I recommend you do this. First, from PowerShell, execute In notepad, stick in these lines: Import-Module posh-git
function prompt {
$origLastExitCode = $LASTEXITCODE
Write-Host $ExecutionContext.SessionState.Path.CurrentLocation -NoNewline
Write-VcsStatus
$LASTEXITCODE = $origLastExitCode
"> "
} For more info on this, please see the Using posh-git section of the README file. When you do update to posh-git 0.7.0, I recommend that you remove the |
Thank you a lots! It work nice |
just like issue #161
I update PowerShell to 5.0 with Managmant Framework and I installed the posh-git in command 'Install-Module posh-git -Scope CurrentUser' but it doesn't show the git status in PowerShell
The text was updated successfully, but these errors were encountered: