reujab / silver

A cross-shell customizable powerline-like prompt with icons
MIT License
453 stars 30 forks source link

Which font from nerd-fonts is needed? #3

Closed iilyak closed 5 years ago

iilyak commented 5 years ago

I tried couple and they don't seem to work. The ones I tried:

reujab commented 5 years ago

When you say they don't work, do you mean that the glyphs don't render? Are you sure that your terminal is set to the correct font? Can you send a screenshot of your terminal prompt?

iilyak commented 5 years ago

Here is what I get

silver is installed inside docker container:

screen shot 2018-12-19 at 2 44 38 am

Settings in iTerm2 are:

screen shot 2018-12-19 at 2 45 04 am

P.S. Thank you for looking into it.

iilyak commented 5 years ago

Not sure if it would help but here is some debugging:

export SILVER=(status:black:white dir:blue:black git:
export SILVER_SHELL=bash
silver print "${SILVER[@]}" | hexdump
0000000 5b5c 5b1b 3434 5c6d 5c5d 1b5b 335b 6d30
0000010 5d5c ef20 9580 732f 6372 632f 756f 6863
0000020 6264 5c20 1b5b 345b 6d33 5d5c 5b5c 5b1b
0000030 3433 5c6d ee5d b082 5b5c 5b1b 3334 5c6d
0000040 5c5d 1b5b 335b 6d30 5d5c ee20 a082 ef20
0000050 9c80 80ef ef9c 9c80 80ef ef9c 9c80 80ef
0000060 209c 4548 4441 ef20 9184 5c20 1b5b 305b
0000070 5c6d 5c5d 1b5b 335b 6d33 5d5c 82ee 5cb0
0000080 1b5b 305b 5c6d 005d
0000087
iilyak commented 5 years ago

I am quite confident that silver is correct. It is just the matter of choosing the right font.

reujab commented 5 years ago

What happens when you use this font?

Fura Code.zip

iilyak commented 5 years ago

It look almost the same. The difference only in the characters glyph and the fact that this one is mono spaced font.

iilyak commented 5 years ago

Not sure if it matter. My locale settings are different on the host and inside docker: In docker I have:

locale
LANG=en_GB.UTF-8
LANGUAGE=
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"

On host I have:

locale
LANG="en_CA.UTF-8"
LC_COLLATE="en_CA.UTF-8"
LC_CTYPE="en_CA.UTF-8"
LC_MESSAGES="en_CA.UTF-8"
LC_MONETARY="en_CA.UTF-8"
LC_NUMERIC="en_CA.UTF-8"
LC_TIME="en_CA.UTF-8"
LC_ALL=
iilyak commented 5 years ago

Some more info. I noticed that prompt is actually working when I am in the nested git project.

screen shot 2018-12-28 at 4 44 20 am

the structure of the project is:

<main_repository>
   |- src/<showroom_repository>

The prompt is displayed correctly when I am inside src/showroom directory. It is not displayed correctly when I am in the root of the project.

reujab commented 5 years ago

I don't see an issue with that last screenshot you posted; the glyphs appear to be properly rendered. Is the issue all of those git stash icons?

If the issue you're having is with the glyphs, what happens when you use another terminal for macOS?

iilyak commented 5 years ago

There is a big number of image

These icons take 1/4 of my screen. Given the fact that for some unrelated reason docker cannot use whole width of my terminal (but only half of it), most of the commands I type end up to be splited into multiple lines. Which is hard to read.

Anyway it seems like another issue. Fura Code.zip fixes the issue with glyphs. Thank you for your help.