Problem with emojis (prompt) squeezed #9158
-
Hello! I was playing a bit with fish and zsh. Now I've decided to go with fish. But I don't know why but I get Problems with the emoji width in my prompt. I've already tested to set fish_emoji_width to 2. Before I had installed zsh + ohmyzsh. Now I'm not sure if there are some system configs or something left that create this issue. Has someone maybe an idea? I would appericate it. Bye bye |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is about the rendering. That's up to the terminal, fish has no influence on that.
Setting $fish_emoji_width to 2 tells fish that the terminal will render emoji with a width of 2 columns (so it can figure out what column the prompt ends in). It doesn't give them a width of 2. That's up to the terminal. Plus your issue here isn't that these are 1 column instead of 2, it's the position inside the column. You have four solutions here:
Fish can't do anything about this. |
Beta Was this translation helpful? Give feedback.
This is about the rendering. That's up to the terminal, fish has no influence on that.
Setting $fish_emoji_width to 2 tells fish that the terminal will render emoji with a width of 2 columns (so it can figure out what column the prompt ends in). It doesn't give them a width of 2. That's up to the terminal.
Plus your issue here isn't that these are 1 column instead of 2, it's the position inside the column.
You have four solutions here:
Fish can't do anything about this.