详细安装教程:https://starship.rs/
模块配置教程:https://starship.rs/config/
配置需要安装nerdfont:https://www.nerdfonts.com/
配置文件中的乱码字符是nerdfont里面的特殊字符,类似>
使用starship.exe config
,打开配置文件
[username]
format = "[$user](fg:white bg:236)"
disabled = false
show_always = true
[hostname]
ssh_only = false
format = "[@$hostname](fg:white bg:236)[
](fg:236 bg:45)"
trim_at = ".companyname.com"
disabled = false
[directory]
home_symbol="~"
read_only=""
format="[$path](fg:234 bg:45)[](fg:45)"
使用Windows Terminal的主题配色默认设置:
"profiles":
{
"defaults": {
"cursorShape": "filledBox",
"hidden": false,
"startingDirectory" : ".",
"colorScheme": "One Half Dark",
"cursorColor": "#ffffff",
"fontFace": "CaskaydiaCove NF",
"fontSize": 12,
"useAcrylic": true,
"acrylicOpacity": 0.7,
"suppressApplicationTitle": true,
"padding": "16, 16, 16, 16"
},
// 省略其他配置显示
}
效果: