Skip to content

Known fonts that work with bash git prompt

Brian Baligad edited this page Jun 19, 2014 · 3 revisions

Linux distros such as Arch or Gentoo may not include by default the necessary fonts to render glyphs used by bash-git-prompt. Commonly used fonts such as ttf-liberation, ttf-droid, and terminus do not include these special characters. This results in the user seeing boxes instead of the intended symbols. The solution is to either set a fallback font, or use one of these fonts as your primary. For example, to set a fallback font for URxvt, the following configuration will work:

URxvt.font: xft:Terminus:size=10:antialias=false, \
            xft:DejaVu Sans:size=10:antialias=false

Where Terminus is the primary font, and DejaVu Sans is the fallback. The fallback is used in case the primary does not have the necessary glyphs (which in this case, Terminus does not).

The following is a list of fonts that are known to have all the necessary glyphs:

  • DejaVu Sans
Clone this wiki locally