Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Prompts with emoji issues



On 19 May 2020, at 07:54, Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx> wrote:
> You need to fix typos in your prompt. Start with this:

I don't know what message you replied to, but I assume you didn't read the entire thread?

> Note that I've replaced 👹 with $'\U1F479'. This is intentional. It's
> meant to trigger an error if your locale is misconfigured. If you get
> an error saying "zsh: character not in range", your locale isn't
> UTF-8. You need to make it UTF-8.

My local is UTF-8 on all devices.

>  print -r ${(l:${(m)#toon}:: :)}$'XYZ\n'$toon' ^-- must point to Y'

Works fine in Terminal app on macOS and also when tmuxed into FreeBSD, so this is not triggering the issue I am seeing with the prompt in FreeBSD.



-- 




Messages sorted by: Reverse Date, Date, Thread, Author