2021-07-15 08:05:30 -07:00
{
"$schema" : "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh3/main/themes/schema.json" ,
"final_space" : true ,
"blocks" : [
2021-11-07 08:42:56 -08:00
{
"type" : "prompt" ,
"alignment" : "left" ,
"newline" : true ,
"segments" : [
{
"type" : "root" ,
"style" : "plain" ,
"powerline_symbol" : "\uE0B0" ,
"foreground" : "red" ,
"properties" : {
"prefix" : "" ,
"postfix" : " " ,
"root_icon" : "\uF0E7"
}
} ,
{
"type" : "path" ,
"style" : "plain" ,
"foreground" : "blue" ,
"properties" : {
"prefix" : "" ,
"postfix" : "" ,
"home_icon" : "\uF7DB" ,
"folder_icon" : "\uE5FF" ,
"folder_separator_icon" : "/" ,
"style" : "agnoster"
}
} ,
{
"type" : "git" ,
"style" : "plain" ,
"foreground" : "green" ,
"foreground_templates" : [
2021-11-09 08:13:47 -08:00
"{{ if or (.Working.Changed) (.Staging.Changed) }}yellow{{ end }}" ,
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}red{{ end }}" ,
"{{ if gt .Ahead 0 }}red{{ end }}" ,
"{{ if gt .Behind 0 }}green{{ end }}"
2021-11-07 08:42:56 -08:00
] ,
"properties" : {
"fetch_status" : true ,
"fetch_stash_count" : true ,
2021-11-08 13:56:40 -08:00
"fetch_upstream_icon" : true ,
2021-11-07 08:42:56 -08:00
"prefix" : " on " ,
"postfix" : "" ,
"github_icon" : " " ,
2021-11-09 08:13:47 -08:00
"template" : "{{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }}<red> \uF044 {{ .Working.String }}</>{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}<yellow> \uF046 {{ .Staging.String }}</>{{ end }}{{ if gt .StashCount 0 }} \uF692 {{ .StashCount }}{{ end }}"
2021-11-07 08:42:56 -08:00
}
} ,
{
"type" : "dotnet" ,
"style" : "plain" ,
"foreground" : "magenta" ,
"properties" : {
"prefix" : " [.NET] "
}
}
]
} ,
{
"type" : "prompt" ,
"alignment" : "left" ,
"newline" : true ,
"segments" : [
{
"type" : "time" ,
"style" : "plain" ,
"foreground" : "yellow" ,
"properties" : {
"prefix" : "" ,
"time_format" : "15:04:05"
}
} ,
{
"type" : "text" ,
"style" : "plain" ,
"foreground" : "green" ,
"properties" : {
"prefix" : "" ,
"postfix" : "" ,
"text" : "\u276F"
}
}
]
}
2021-07-15 08:05:30 -07:00
]
}