Comments (5)
Since nowadays it's quite easy to do checks across Linux distributions I spent some time on that.
All the checks are done with distrobox:
- spawn new container with empty user home dir.
- install zsh
- install starship
- activate starship
The result:
Ubuntu 22.04 - exhibits the problem described above
Ubuntu 23.10 - exhibits the problem described above
RHEL 9 - broken (actually its broken in the same way even before activating starship)
Fedora 38 - exhibits the problem described above
Fedora 39 - exhibits the problem described above
OpenSUSE Leap - exhibits the problem described above
I stopped here.
Also, I checked starship versions back to version v1.16.0 with the same outcome.
I hope this helps.
from starship.
Further info,
I tacked it down to a problem with the 'character' prompt plugin/module(?).
It's broken if UTF-8 character is used as $symbol.
If I replace the fancy '❯' with ASCII '>' the problem goes away.
Strangely enough, it's broken only under ZSH, I tried BASH and FISH and the problem does not show under these shells.
from starship.
Sorry for the noise.
The problem was with my local config.
My locale (LC_xxx) variables got messed up at some point of time (set to non-UTF locale).
Setting them properly fixed the problem.
from starship.
Sorry to bother you, I also encountered the same problem. I tried setting LC_XXX, but it didn't seem to work. May I ask how you solved it?
I am using wsl 2.1.3.0 , zsh 5.9 (x86_64-pc-linux-gnu), and startship 1.18.2
this is my locale
❯ cat /etc/default/locale
LC_CTYPE=en_US.UTF-8
LC_ALL=en_US.UTF-8
LANG=en_US.UTF-8
from starship.
For me fixing the locale settings did the job.
Maybe it's worth checking what the actual locale settings are with locale
from starship.
Related Issues (20)
- Irrelevant single character change in pyvenv.cfg changes the prompt displayed with the variable ($virtualenv) for Python
- nspawn wrongly detected as OCI HOT 5
- Update `git_metrics` example to work properly in clean repo
- Color on macOS is not correct HOT 1
- Conda section not using assigned color HOT 1
- The starship won't work if not commenting or deleting #Use manjaro zsh prompt portion in the .zshrc file. HOT 2
- Starship stopped to worked in WSL mode after connecting with VSCode HOT 1
- Installing starship on a QNAP NAS not working HOT 1
- Separators between command output
- Add uv flag to python module
- `git_state` showing symbols outside of git repo HOT 3
- Wrong offset for Unicode characters on tab completion HOT 2
- `[character]` is always `success_symbol` HOT 2
- Post Prompt function
- Failed to detect Linux OS HOT 6
- 404 on the site
- Custom modules clearing the prompt entirely in fish HOT 2
- Support for Clink Async Prompt update
- Kubernetes module triggers without env vars HOT 3
- Conda module: directory truncation does not work on Windows
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.