oh-my-posh: Broken Text in fish

Code of Conduct

  • I agree to follow this project’s Code of Conduct

What happened?

After installing ohmyposh and reloading the fish session, the prompt started behaving weirdly. It works fine when I’m in the home directory or a level above it (Documents, Desktop, Pictures, etc.), but the prompt breaks when I go to a specific directory in this level. PFA screenshot:

image image image

When this happens, I am able to delete parts of the prompt when I hit the delete key like so:

image

Theme

Default config

What OS are you seeing the problem on?

macOS

Which shell are you using?

fish

Log output

ReadMapCB: expect { or n, but found 4, error found in #1 byte of ...|404: Not Fo|..., bigger context ...|404: Not Found|...

This ^ was because I tried to make my own config to see if this issue persists, but I ended up deleting it.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 36 (15 by maintainers)

Most upvoted comments

Sure @JanDeDobbeleer Sorry for the late response!

@karl-chanel font rendering is never something oh-my-posh can influence (it even differs per shell, you can also see that in my screenshots above). It’s not because the front have been patched with the same glyphs that they also render equally. oh-my-posh only outputs a set of characters and color indications using ANSI, it can’t influence how the terminal renders that.

@JanDeDobbeleer No, there are no such modifications in my configs. That symbol is vi mode for the shell, though this issue occurs even with vi mode disabled.

No, I’ll try upgrading now