2021-01-11 06:32:05 -08:00
{
2021-11-07 08:42:56 -08:00
"$schema" : "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json" ,
"blocks" : [
{
"type" : "prompt" ,
"alignment" : "left" ,
"segments" : [
2021-01-11 06:32:05 -08:00
{
2021-11-07 08:42:56 -08:00
"type" : "os" ,
"style" : "powerline" ,
"foreground" : "cyan" ,
"properties" : {
"prefix" : "" ,
"postfix" : ""
}
2021-01-11 06:32:05 -08:00
} ,
{
2021-11-07 08:42:56 -08:00
"type" : "path" ,
"style" : "plain" ,
"foreground" : "cyan" ,
"properties" : {
"style" : "full"
}
2021-01-11 06:32:05 -08:00
} ,
{
2021-11-07 08:42:56 -08:00
"type" : "git" ,
"style" : "plain" ,
"foreground" : "#F1502F" ,
"properties" : {
"prefix" : ":: " ,
"fetch_status" : true ,
2021-11-09 08:13:47 -08:00
"template" : "{{ .HEAD }}{{ .BranchStatus }}{{ if .Staging.Changed }} \uF046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uF044 {{ .Working.String }}{{ end }}"
2021-11-07 08:42:56 -08:00
}
2021-01-11 06:32:05 -08:00
}
2021-11-07 08:42:56 -08:00
]
} ,
{
"type" : "prompt" ,
"alignment" : "right" ,
"segments" : [
{
"type" : "root" ,
"style" : "plain" ,
"foreground" : "red" ,
"properties" : {
"prefix" : "| " ,
2022-01-22 10:46:56 -08:00
"template" : "root"
2021-11-07 08:42:56 -08:00
}
} ,
{
"type" : "dart" ,
"style" : "powerline" ,
"foreground" : "#06A4CE" ,
"properties" : {
"prefix" : "| \uE798 "
}
} ,
{
"type" : "node" ,
"style" : "powerline" ,
"foreground" : "#6CA35E" ,
"properties" : {
"prefix" : "| \uE718 "
}
} ,
{
"type" : "python" ,
"style" : "plain" ,
"foreground" : "#4584b6" ,
"properties" : {
"prefix" : "| \uE235 " ,
"display_mode" : "context" ,
2021-12-04 02:56:55 -08:00
"fetch_virtual_env" : true ,
"template" : "{{ .Venv }}"
2021-11-07 08:42:56 -08:00
}
} ,
{
"type" : "battery" ,
"style" : "powerline" ,
"invert_powerline" : true ,
2021-11-25 04:55:03 -08:00
"foreground_templates" : [
"{{if eq \"Charging\" .State.String}}#4caf50{{end}}" ,
"{{if eq \"Discharging\" .State.String}}#40c4ff{{end}}" ,
"{{if eq \"Full\" .State.String}}#ff0000{{end}}"
] ,
2021-11-07 08:42:56 -08:00
"properties" : {
"charging_icon" : " " ,
"charged_icon" : "\uf00d " ,
"prefix" : "| " ,
"postfix" : " "
}
} ,
{
"type" : "time" ,
"style" : "plain" ,
"foreground" : "lightGreen" ,
"properties" : {
"prefix" : "| "
}
}
]
} ,
{
"type" : "prompt" ,
"alignment" : "left" ,
"newline" : true ,
"segments" : [
{
"type" : "exit" ,
"style" : "powerline" ,
"foreground" : "lightGreen" ,
2021-11-14 04:39:00 -08:00
"foreground_templates" : [ "{{ if gt .Code 0 }}red{{ end }}" ] ,
2021-11-07 08:42:56 -08:00
"properties" : {
"always_enabled" : true ,
2021-11-14 04:39:00 -08:00
"template" : "\u279c" ,
"prefix" : ""
2021-11-07 08:42:56 -08:00
}
}
]
}
]
2021-01-11 06:32:05 -08:00
}