iTerm2 – Why is the Width of `~` Different Than `?` Using Zsh with Spaceship-Prompt?

itermzsh

iTerm2

Using iTerm2. Installed zsh, spaceship-prompt and FiraCode.

Why is the width of ~ different than ?

Best Answer

Ok, found what’s going on... SPACESHIP_CHAR_SYMBOL is set to (Heavy Round-Tipped Rightwards Arrow, unicode U+279C) by default vs (Rightwards Arrow, unicode U+2192) which has the right width. PR in the making.

Submitted a PR to spaceship-prompt.