background
Hyper is a very stylish command line tool, and I haven’t thought about another tool since I used it. The restless heart inside the programmer was ignited. Oh My ZSH is not much introduction, please refer to the installation method here. ~/.zshrc: < /.zshrc: < /.zshrc: < /.zshrc: < /.zshrc: < /.zshrc: < /.zshrc: < /.zshrc: < /.zshrc: < /.zshrc: < /.
ZSH_THEME=agnoster
Copy the code
The problem
As you can see below, what should have been a sharp corner has become a square.
Looking forward to the results
How wonderful it would be to be like this!
There are many other cool subjects to choose from, if you are interested, you can read: github.com/ohmyzsh/ohm…
why
The system is missing the PowerLine font.
The solution
Install the fonts
MacOS can run the following commands to install fonts.
# clone git clone https://github.com/powerline/fonts.git --depth=1 # install cd fonts ./install.sh # clean-up a bit cd . rm -rf fontsCopy the code
Windows please refer to How to Install Powerline Fonts in Windows
For details about how to install other oss, see github.com/powerline/f…
Set the font
After installing, edit ~/.hyper. And set the font to DejaVu Sans Mono for Powerline.
// font family with optional fallbacks
fontFamily: 'DejaVu Sans Mono for Powerline, Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
Copy the code
results
I finally got what I wanted!