Giter VIP home page Giter VIP logo

Comments (12)

its-19818942118 avatar its-19818942118 commented on September 26, 2024

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.

Bahnschrift avatar Bahnschrift commented on September 26, 2024

Pretty sure, yep. I've managed to work out that using just

format = ""

as the config causes the issue.

image

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.

its-19818942118 avatar its-19818942118 commented on September 26, 2024

Might be with font substitution. Are you using kitty terminal?

from starship.

its-19818942118 avatar its-19818942118 commented on September 26, 2024

Try using other terminals just to be sure

from starship.

its-19818942118 avatar its-19818942118 commented on September 26, 2024

Pretty sure, yep. I've managed to work out that using just

format = ""

as the config causes the issue.

image

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.

davidkna avatar davidkna commented on September 26, 2024

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.

Bahnschrift avatar Bahnschrift commented on September 26, 2024

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.

Bahnschrift avatar Bahnschrift commented on September 26, 2024

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.

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.

its-19818942118 avatar its-19818942118 commented on September 26, 2024

Try using other terminals just to be sure
And yeah can be the cause try changing

from starship.

davidkna avatar davidkna commented on September 26, 2024

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.

Bahnschrift avatar Bahnschrift commented on September 26, 2024

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.

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.

Bahnschrift avatar Bahnschrift commented on September 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.