Comments (12)
You sure it does that?
Pls check again. Cuz it used to happen to me but I check the config. Populated it and override it. Do not put space after $character
. Idk if this will help but still I think it worked on me so 😞😞😕
from starship.
Pretty sure, yep. I've managed to work out that using just
format = "❱"
as the config causes the issue.
Interestingly, it doesn't seem to happen with other characters. For example, just using >
works as expected without the extra spaces.
Using more ❱
s in the prompt seems to increase the number of spaces at the end. I'd guess it's an issue to do with how specific characters are handled on certain platforms?
from starship.
Might be with font substitution. Are you using kitty terminal?
from starship.
Try using other terminals just to be sure
from starship.
Pretty sure, yep. I've managed to work out that using just
format = "❱"as the config causes the issue.
Interestingly, it doesn't seem to happen with other characters. For example, just using
>
works as expected without the extra spaces.Using more
❱
s in the prompt seems to increase the number of spaces at the end. I'd guess it's an issue to do with how specific characters are handled on certain platforms?
Share me your config
from starship.
Moreover, please check if the remote system is using a UTF-8 locale and that it is present on the system (/etc/locale.gen
). The value of $LANG
should contain UTF-8
.
from starship.
Might be with font substitution. Are you using kitty terminal?
No, I've tried with several terminals, including Windows Terminal and conhost on windows, and Termux on android.
Share me your config
The minimal config to replicate it is just toml format = "❱"
from starship.
Moreover, please check if the remote system is using a UTF-8 locale and that it is present on the system (
/etc/locale.gen
). The value of$LANG
should containUTF-8
.
It seems like $LANG
was actually set to C
instead of en_US.UTF-8
(which is what I use on other systems where this config works), but unfortunately updating /etc/locale.conf
and rebooting doesn't seem to fix the issue. Could still be related though?
from starship.
Try using other terminals just to be sure
And yeah can be the cause try changing
from starship.
Did you make sure the locale is not commented in /etc/locale.gen
and did you run locale-gen
? Maybe also try changing the locale via localectl
.
from starship.
Did you make sure the locale is not commented in
/etc/locale.gen
and did you runlocale-gen
? Maybe also try changing the locale vialocalectl
.
Oh I really should've double checked a guide on how to change that! I only uncommented the line and didn't run locale-gen
. It's all working now with the correct locale.
Thanks for your help!
from starship.
I am still a bit curious as to why this doesn't happen with other shells (it was fine with bash), but the locale being wrong was definitely the issue.
from starship.
Related Issues (20)
- Allow setting `prev_fg` and `prev_bg` without any printed characters
- Show git tag without showing commit HOT 2
- Add support for dash. HOT 1
- Add Presets like powerlevel10k
- Group modules in documentation into thematic groups
- `add_newline` not on `clear` / `^L` HOT 1
- Character module cant detect error codes
- Missing last character in the right prompt inside Neovim terminal
- Environment variable module displays when variable isn't set
- Cursor disappears when no content is entered in nushell
- Requesting support ash HOT 1
- Running the automatic installer on Fedora Workstation downloads for musl. HOT 1
- docker area not appearing HOT 2
- Zsh: command exit status not populated
- Repeat prompt in nushell sometime
- Starship preferencing `rustup`-provided version of Rust, instead of the version on `$PATH`
- git_status with a small command_timeout makes the shell not responding
- Directory Substitutions doesn't have a default option to handle substitution exceptions.
- Docs: Seperate tool-specific and other modules into separate pages
- [Feature request]: cmd_duration: Ability to ignore applications
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from starship.