当前位置: 首页 > 工具软件 > Powerline > 使用案例 >

Linux/Mac 安装字体 Powerline

呼延弘方
2023-12-01

Powerline fonts

  • website: https://github.com/powerline/fonts
  • git: https://github.com/powerline/fonts.git

This repository contains pre-patched and adjusted fonts for usage with the Powerline statusline plugin.

Installation

Run ./install.sh to install all Powerline Fonts or see the documentation for details.

Quick installation

If you are running a Debian or Ubuntu based Linux distribution, there should be a package available to install the Powerline Fonts with the following command:

sudo apt-get install fonts-powerline

For fedora (tested on 28) or redhat based Linux distribution, there should also be a package available to install with the following command:

sudo dnf install powerline-fonts

On other environments, you can copy and paste these commands to your terminal. Comments are fine too.

# clone
git clone https://github.com/powerline/fonts.git --depth=1
# install
cd fonts
./install.sh
# clean-up a bit
cd ..
rm -rf fonts

在命令客户端设置字体, 选择带有 powerline 的字体就可以了.

 类似资料: