MacOS starship 和 Nerd Font 安装与配置

659 阅读1分钟

starship

轻量、迅速、客制化的高颜值终端! image.png starship.rs/zh-CN/

starship font

Nert Font

image.png

brew search nerd-font > brew-nerd-fonts.txt
#!/bin/sh

for line in `cat ~/brew-nerd-fonts.txt`
do
    echo "Installing font:  $line"
    brew install $line
done

macOS安装字体nerd-font

安装单个字体

❯ brew install --cask font-anonymice-nerd-font

==> Downloading https://formulae.brew.sh/api/cask.jws.json

下载有问题.

https://www.nerdfonts.com/assets/css/webfont.css

../fonts/Symbols-2048-em Nerd Font Complete.woff2

https://www.nerdfonts.com/assets//fonts/Symbols-2048-em Nerd Font Complete.woff2

MacOS 字体转换收费App image.png

woff

WOFF 代表的是Web Open Font Format,

ttf

代表 TrueType Font

Convert woff to ttf

convert.io/cn/font-con…

image.png

install font

image.png

image.png

Terminal Profile Font

image.png

image.png

vscode

vscode terminal设置字体

startship 效果

bracketed-segments.toml

starship preset bracketed-segments -o ~/.config/starship.toml

image.png

tokyo-night.toml

starship preset tokyo-night -o ~/.config/starship.toml

image.png

参考资料:

Cheat Sheet

image.png

Starship 配置——在终端上显示 Git 状态、Python 虚拟环境、命令运行时间等

Mac上安装Nerd fonts教程

macOS 批量安装Nerd Font

Powerline fonts & Nerd fonts 简介

字体效果展示

image.png

PING to ICNS Converter

cloudconvert.com/png-to-icns image.png