-
-
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
Duplicate prompt #486
Comments
Thanks for the bug report. I can duplicate it on WSL/Bash. I'll take a look at it. |
Awesome, this is blocking me atm from using PowerShell as my primary terminal ❤️ |
How did you install posh-git? I would expect a different version number if you were using the |
I followed the readme: |
Unfortunately the PowerShell Gallery doesn't support prerelease versions yet.
This should do it:
|
That gives me an error:
|
I also noticed the added import to my profile uses backslashes: Import-Module '/Users/felix/git/posh-git/src\posh-git.psd1' |
Yeah, we have definitely have more work to do to finish up the cross-platform / PowerShell Core support. |
Happy to test any fixes. Really want to get back to Powershell 💪 |
The issue is with PSReadline see - PowerShell/PSReadLine#468. There was a partial fix documented here - PowerShell/PowerShell#3867. The workaround for now is to add this line to your profile after the import of posh-git (develop branch) e.g.:
The two keys are use esc seqs instead of |
Also, found and fixed the |
The proper fix is sitting in this branch - it's at least preview quality, but I don't have custom key bindings working on Linux yet. |
FWIW this workaround makes it tolerable on WSL/Bash on Windows 10. There's still this weird cursor movement that happens as you type. :-( |
#487 has been merged into |
Awesome to see the progress, keep it up :) |
When can the fix for this become available in the release? I have been hoping the fix would be released sooner with how it impacts usage. I continue to see the problem. |
The latest builds of PSReadLine address the double prompt and odd behavior on input, but installing requires replacing files in PowerShell 6.0.0-rc. Hopefully that won't be necessary for the final release, but no guarantees, my free time doesn't necessarily line up with the PowerShell team's schedule. |
@binaryWard If you clone this repo and checkout the
IIRC the current PSReadline impl behaves better if the prompt char |
I'm going to close this since the original issue is really a PSReadLine issue that has been fixed. If you are running PS Core on Linux or macOS, you can install a beta of the 2.0.0 PSReadLine module with the following command: Install-Module PSReadLine -RequiredVersion 2.0.0-Beta1 -AllowPrerelease -Scope CurrentUser |
Getting this error when I'm trying to install it:
|
Sorry, we've not published Beta1 yet. I was hoping you could try it from the GH source. See the instructions I left in #501. |
I don't see any instructions for PSReadline in #501? |
Doh! Guess I should read these posts more thoroughly before replying. You need to be on PS Core 6.0.0-rc2. That is using a newer version of PowerShellGet (1.6.0) that understands the prerelease versioning. |
You can also just update (install) the latest PowerShellGet if you're running Windows PowerShell, probably something like |
System Details
Issue Description
My prompt is duplicated:
further typing causes weird behavior:
The text was updated successfully, but these errors were encountered: