You are not logged in.

#1 2024-04-07 12:11:39

dulhaver
Member
Registered: 2023-08-17
Posts: 14

starship prompt missing some symbols

I have starship and also some nerd fonts installed on xfce4.

➜ pacman -Qq | grep nerd
ttf-agave-nerd
ttf-firacode-nerd
ttf-nerd-fonts-symbols-common
ttf-nerd-fonts-symbols-mono
ttf-ubuntu-mono-nerd
ttf-ubuntu-nerd

➜ pacman -Qq starship
starship

it is called with

eval "$(starship init bash)"

in my ~/.bashrc

In general it seems to work, but not all of the symbols are displayed as they should >> https://imgur.com/x0v5jms/
It does neither make any difference with which terminal emulator (xfce4-terminal, alacritty, kitty) I am ausing nor whether oh-my-bash is active or not.

Any hint where things go wrong here?

Offline

#2 2024-04-07 13:55:50

impossibleveins23
Member
From: Israel
Registered: 2022-06-18
Posts: 148

Re: starship prompt missing some symbols

And did you configure the font in terminal (e.g. in kitty.conf: font_family MesloLGS NF)?


* Good formatted problem description will cause good and quick solution smile
* Please don't forget to mark as [SOLVED].

Offline

#3 2024-04-07 18:49:36

dulhaver
Member
Registered: 2023-08-17
Posts: 14

Re: starship prompt missing some symbols

yep, I think so

➜ cat ~/.config/alacritty/alacritty.toml
[font]
size = 12.0

[font.normal]
family = "FiraCode Nerd Font"
style = "Regular"

[window]
opacity = 0.95

[window.padding]
x = 8 
y = 8

Offline

#4 2024-04-08 08:00:03

impossibleveins23
Member
From: Israel
Registered: 2022-06-18
Posts: 148

Re: starship prompt missing some symbols

* Can you try in installing ttf-nerd-fonts-symbols and see if it completes the missing signs?
*Try refresh the font cache (fc-cache).


* Good formatted problem description will cause good and quick solution smile
* Please don't forget to mark as [SOLVED].

Offline

#5 2024-04-08 08:24:29

seth
Member
Registered: 2012-09-03
Posts: 59,911

Re: starship prompt missing some symbols

fc-list :charset=279c

The other one looks like (overlapped)

fc-list :charset=2718

Edit: --idiocy - yeah, "match" will show exactly *one* match.
=>> ++caffeine

Last edited by seth (2024-04-08 08:25:55)

Offline

#6 2024-04-08 15:46:37

dulhaver
Member
Registered: 2023-08-17
Posts: 14

Re: starship prompt missing some symbols

installing ttf-nerd-fonts-symbols

did not do anything

fc-list :charset=279c
fc-list :charset=2718

do not return anything

Offline

#7 2024-04-08 16:00:57

seth
Member
Registered: 2012-09-03
Posts: 59,911

Re: starship prompt missing some symbols

Install DejaVu …

Offline

#8 2024-04-08 16:50:39

impossibleveins23
Member
From: Israel
Registered: 2022-06-18
Posts: 148

Re: starship prompt missing some symbols

It's funny because u279c is a bold arrow right (➜) which looks like the one in your terminal's snippet above.

Does this printf "%X\n" \"➜\" returns 279c ?


* Good formatted problem description will cause good and quick solution smile
* Please don't forget to mark as [SOLVED].

Offline

#9 2024-04-08 16:55:25

seth
Member
Registered: 2012-09-03
Posts: 59,911

Re: starship prompt missing some symbols

https://www.nerdfonts.com/cheat-sheet - search for "arrow right"
I might be wrong though, but the box reads like "279c" to me.

Offline

#10 2024-04-08 16:59:05

impossibleveins23
Member
From: Israel
Registered: 2022-06-18
Posts: 148

Re: starship prompt missing some symbols

Yep, I wonder how on one side, OP's terminal can present '➜' while in starship's prompt it can't...


* Good formatted problem description will cause good and quick solution smile
* Please don't forget to mark as [SOLVED].

Offline

#11 2024-04-08 17:12:05

seth
Member
Registered: 2012-09-03
Posts: 59,911

Re: starship prompt missing some symbols

Oh, I see…
Just because *you* can see that glpyh properly resolved in *your* browser doesn't mean the OP can tongue

Offline

#12 2024-04-12 20:40:55

dulhaver
Member
Registered: 2023-08-17
Posts: 14

Re: starship prompt missing some symbols

I had this in my starship.toml

success_symbol = '[➜](bold green)'

removing that makes things much better https://imgur.com/mKt8eRq.png.

not perfect yet, as you can see in this python based repo folder https://imgur.com/88xLBo9.png

following up on the lessons learned above

❯ printf "%X\n" \?\"
1F40D

(weird enough I see the python symbol here just fine as long I did not save the post while it does not show in the terminal, as you see in this screenshot)

That said ... what are those numbers (279c, 1F40D) referring to exactly. Something like ASCI code?

Last edited by dulhaver (2024-04-12 20:42:08)

Offline

#13 2024-04-12 22:00:05

seth
Member
Registered: 2012-09-03
Posts: 59,911

Re: starship prompt missing some symbols

utf-8 codepoints - you can google them along "utf8" and it'll show you a bunch of utf-8 related pages that explain the codepoint (name, group and usually an illustrating png)

fc-list :charset=279c

prints all installed fonts that provide that one

Install https://archlinux.org/packages/extra/any/ttf-dejavu/ - it'll provide a whole lot of them.

fc-list :charset=1F40D

Your TE will most likely only accept fixed witdth substitutes or so, ? is typically in emoji-fonts only.

Offline

#14 2024-04-13 17:31:25

dulhaver
Member
Registered: 2023-08-17
Posts: 14

Re: starship prompt missing some symbols

fc-list :charset=1F40D neither shows any hit with ttf-dejavu installed.

I was advised that starship would work just find with Firacode and I am certain the info is reliable.
Neither does searching for 'snake', nor 'python' return any 1F40D on the Nerdfonts cheat-sheet

So it gets more mysterious the more I am looking?

Last edited by dulhaver (2024-04-13 17:31:51)

Offline

#15 2024-04-13 17:36:04

seth
Member
Registered: 2012-09-03
Posts: 59,911

Re: starship prompt missing some symbols

The python snake is an amoji and will typically be provided by some emoji font.
DejaVu should get you 279c, though?

Offline

Board footer

Powered by FluxBB