使用 starship 美化 terminal

starship 的安装与配置
更新于: 2021-12-19 12:57:28

安装

# 安装 starship
brew install starship

# 配置
npm i -S @jswork/ushell-module-starship

配置

# ~/.starship

# 我的配置
[package]
disabled = true

[nodejs]
disabled = true

[git_branch]
symbol = "🌱 "
truncation_length = 8
truncation_symbol = ""

[time]
disabled = true
format = '⏰[\[ $time \]]($style) '
time_format = "%T"
utc_time_offset = "+8"

参考:
https://starship.rs/