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
Start of command gets doubled with tab-completion #2176
Comments
We often see this issue when |
Oh interesting! I looked through the FAQ for info on locales and noticed this bit
I'm guessing this might be the issue in my case, given that it's not currently set to anything. LANG=fr_CA.UTF-8
LC_CTYPE="fr_CA.UTF-8"
LC_NUMERIC="fr_CA.UTF-8"
LC_TIME="fr_CA.UTF-8"
LC_COLLATE="fr_CA.UTF-8"
LC_MONETARY="fr_CA.UTF-8"
LC_MESSAGES="fr_CA.UTF-8"
LC_PAPER="fr_CA.UTF-8"
LC_NAME="fr_CA.UTF-8"
LC_ADDRESS="fr_CA.UTF-8"
LC_TELEPHONE="fr_CA.UTF-8"
LC_MEASUREMENT="fr_CA.UTF-8"
LC_IDENTIFICATION="fr_CA.UTF-8"
LC_ALL= I just tried to use
Do you think it working with |
Do you have |
I've only modified the |
@marier-nico Yeah, this is a bit of a weird point. I was actually drafting a PR to change the FAQ when I saw your issue, and now I vaguely recall that we'd seen an issue like this before where having It's also a little surprising to me that setting |
I can't really explain it either, especially since I'm not at all familiar with what I'd be happy to provide any system info that could be helpful if you'd want to try to get to the bottom of this. Otherwise I figure we can close this since we found a way to make it work. |
I have the same issue on macOS (10.15.7) using zsh with zsh-autosuggestions. |
Have the same issue on Windows 10 2004 with Windows Terminal. but in my case only |
@Ray-Eldath Interesting. I don't think the only change to the powershell init script in 0.49.0 (#2104) could have caused this. But are sure this is related to the starship update? Windows Terminal also just had a big update. |
Sorry for late reply. |
|
For me it was |
It was caused by wrongly unsetting $STARSHIP_SHELL a related issue was found at starship/starship#2176
In my case it was me accidentally unsetting |
In another specific case with WSL on Ubuntu 22.04 with Zsh, nothing related locale worked for me except |
@ryuheechul Perhaps the corresponding |
@davidkna That's what I thought initially too but strangely that doesn't seem to be the case with Ubuntu 22.04. I tried multiple ways to ensure the whole suite of en_XX to be installed but still failed with any except with
|
This is also a problem on macOS, which doesn't even set any locale variables in the shell by default. Setting LANG=en_US.UTF-8 in my .zshrc fixes it. |
Same issue, @ryuheechul's answer put me on track, and I ended up using |
I am on a fresh Ubuntu MATE 23.10 installation with starship installed via nix ( setting it with
|
Current Behavior
Whenever I start typing a command and use tab-completion, the first characters of the command get repeated at the start of the line.
Expected Behavior
Tab completion should work the same regardless of whether or not I'm using Starship.
Additional context/Screenshots
This shows the behavior with Starship. The first time I press Tab, the name of the folder is completed. The second time I press Tab (to show available subfolders), for some reason, an additional
ll
gets added at the start of the line.This shows the behavior which I expect to happen. The only difference between these two examples is that I commented out the line to eval starship init. This is what led me to conclude that Starship was causing the behavior.
I also tried to disable all the other extensions / plugins that get loaded in my
.zshrc
(aside from Starship), and I can still observe the same behavior.Environment
Relevant Shell Configuration
Starship Configuration
The text was updated successfully, but these errors were encountered: