3

iTerm2

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

Why is the width of ~ different than ?

2
  • How did you enter the arrow symbol? What Unicode point is it?
    – mmmmmm
    Commented Aug 28, 2019 at 15:16
  • Because you are using a THEME to customise it. This is defined on the shell variable $PS1 . try echo $PS1 and you will see where it is defined. Change it by editing ~/.zshrc. About the width, is because the font used is not a monospaced font.
    – Prado
    Commented Aug 28, 2019 at 19:37

2 Answers 2

5

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.

4

Prompt is defined on the shell variable $PS1

try echo $PS1 and you will see its definition. Change it by editing ~/.zshrc if you want.

About the width, it is because the font used on your terminal is not a monospaced font. Choose any monospaced, or fixed-size font, if you want all character to be the same width.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .