-1

I'm moving from bash to fish, and I've installed ilancosman/tide prompt. However, Some characters are not displayed correctly (cf. right part):

Prompt with character display bug

What I've done :

  • Install MesloLGS fonts by putting *.ttf files in /usr/local/share/fonts and running fc-cache -fv which outputs /usr/local/share/fonts: caching, new cache contents: 4 fonts, 0 dirs
  • Install powerline and fonts-powerline : sudo apt install powerline fonts-powerline
  • Checked that my $LANG uses UTF-8 : echo $LANG outputs fr_FR.UTF-8

What can I do to have characters displayed correctly? Thanks

The buggy character seems to be git-related as the current working directory was created while performing a git clone ... and it precedes a version number.

I have not modified fish prompt in any way, except by installing Fish tide: https://github.com/IlanCosman/tide

I think I understood the problem, even if it is still unsolved. I copied my prompt inside libreoffice, set the font as the one supposed to be used by the tide prompt (MesloLGS), and got the following result (I manually yellowed the differences spotted with my prompt) :

Prompt in libreoffice

So, as I understand, the problem resides in the fact that my prompt is not using the right font. Still investigating on it.

6
  • What characters is it not displaying? Is that part of your PS1 (or whatever the fish equivalent is) variable? How are you setting your prompt? And what operating system is this? Commented Jun 11 at 9:46
  • Heh, thanks, I can see where it is. The question is what character is that? What is it supposed to show? Is it à? We also need to know i) what terminal you are using, ii) what font you have told your terminal to use and iii) how you are setting fish's prompt. As well as the specific character that fails to display. Commented Jun 11 at 9:50
  • Sorry, you were faster than me for editing/answering. I'm not sure what character it should be : as it is in a git cloned repo, I assume that it is git related. Commented Jun 11 at 9:54
  • Sorry, what is in a git cloned repo? Please edit and explain more. Have you modified fish in any way? Does this only appear when you are in a specific directory? What is shown there in other directories? Have you modified the prompt? See fishshell.com/docs/current/prompt.html Commented Jun 11 at 10:07
  • Sorry for the lack of information, I edited the post as requested. Commented Jun 11 at 10:14

1 Answer 1

-3

Okay, I finally found the answer. What I did to solve the issue: ask ChatGPT.

His answer (which worked for me) is described below.

Install Meslo: (BE CAREFUL : the git clone command requires 7,9 Go!)

git clone --depth 1 https://github.com/ryanoasis/nerd-fonts.git
cd nerd-fonts
./install.sh Meslo

Refresh font cache:

fc-cache -fv

Restart gnome-terminal:

killall gnome-terminal-server

From then I didn't even change the font in the terminal settings (I've let the default font) and fish started using the Meslo font automatically.

Hope this helps.

2
  • 1
    terrible instructions to install a single font; going to the very URL you're cloning with a browser would have told you how to install only meslo. Commented Jun 11 at 14:13
  • I was quite lazy, I just removed the downloaded git afterward... Commented Jun 11 at 16:01

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.