Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git-Bash: How to change the font beyond the ones in options?

Tags:

git-bash

I want to use the Hack Nerd Font for Git Bash on Windows. I have the font installed, but it doesn't appear in options. If I run the command mintty -o Font="Hack NF", it does work in a new mintty window, but if I provide the -o Font option to git-bash.exe itself, it doesn't work. Is there a way to do this?

like image 514
Al Cher Avatar asked Jan 27 '23 01:01

Al Cher


1 Answers

According to the issue tracker at mintty they only look at fonts that are flagged as monospace.

I found an issue against Roboto Mono asking for the 'isFixedPitch' flag to be set for the font, so it is not an uncommon problem.

You can specify the font manually in the .minttyrc file located in your home directory.

For example I tried this and it works.

FontHeight=16
Font=Hack Nerd Font
like image 65
Kyle K Avatar answered Mar 24 '23 16:03

Kyle K