2021-11-01 23:15:59 -07:00
{
2021-11-07 08:42:56 -08:00
"blocks" : [
{
"type" : "prompt" ,
"alignment" : "left" ,
"newline" : true ,
"segments" : [
{
"type" : "os" ,
"style" : "diamond" ,
"leading_diamond" : "\uE0B6" ,
"trailing_diamond" : "" ,
"foreground" : "#0077c2" ,
"background" : "#fbfbfb" ,
"properties" : {
"macos" : "\uEF179" ,
"windows" : "\uF17A" ,
"linux" : "\uF17C" ,
"debian" : "\uF306" ,
"ubuntu" : "\uF31B" ,
"arch" : "\uF303" ,
"fedora" : "\uF30A" ,
"manjaro" : "\uF312" ,
"opensuse" : "\uF314"
}
} ,
{
"type" : "session" ,
"style" : "powerline" ,
"foreground" : "#0077c2" ,
"background" : "#fbfbfb" ,
"powerline_symbol" : "\uE0B0" ,
"properties" : {
"prefix" : "" ,
"display_host" : true ,
2022-01-17 04:16:04 -08:00
"template" : "{{ .UserName }}<#000000>@</><#e06c75>{{ .HostName }}</>"
2021-11-07 08:42:56 -08:00
}
} ,
{
"type" : "root" ,
"style" : "powerline" ,
"powerline_symbol" : "\uE0B0" ,
"foreground" : "#ffffff" ,
"background" : "#e06c75" ,
"properties" : {
2022-01-22 10:46:56 -08:00
"template" : "\uE799 " ,
2021-11-07 08:42:56 -08:00
"postfix" : "\u2800"
}
} ,
{
"type" : "path" ,
"style" : "powerline" ,
"powerline_symbol" : "\uE0B0" ,
"foreground" : "#ffffff" ,
"background" : "#0077c2" ,
"properties" : {
"style" : "letter" ,
"folder_separator_icon" : "/" ,
"prefix" : " \uE5FE " ,
"home_icon" : "~" ,
"max_depth" : 2
}
} ,
{
"type" : "git" ,
"style" : "powerline" ,
"powerline_symbol" : "\uE0B0" ,
"foreground" : "#193549" ,
"background" : "#fffb38" ,
"background_templates" : [
2021-11-09 08:13:47 -08:00
"{{ if or (.Working.Changed) (.Staging.Changed) }}#ff9248{{ end }}" ,
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#f26d50{{ end }}" ,
"{{ if gt .Ahead 0 }}#f17c37{{ end }}" ,
"{{ if gt .Behind 0 }}#89d1dc{{ 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-09 08:13:47 -08:00
"template" : "{{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Staging.Changed }} \uF046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uF044 {{ .Working.String }}{{ end }}{{ if gt .StashCount 0 }} \uF692 {{ .StashCount }}{{ end }}"
2021-11-07 08:42:56 -08:00
}
} ,
{
"type" : "text" ,
"style" : "plain" ,
"foreground" : "#FFD54F" ,
"properties" : {
"text" : "{{if .Root}}#{{else}}${{end}}" ,
"postfix" : ""
}
}
]
} ,
{
"type" : "rprompt" ,
"segments" : [
{
"type" : "exit" ,
"style" : "plain" ,
"foreground" : "#ffffff" ,
"properties" : {
"always_enabled" : true ,
2021-11-14 04:39:00 -08:00
"template" : "{{ if gt .Code 0 }}\uF659{{ else }}\uF633{{ end }}"
2021-11-07 08:42:56 -08:00
}
} ,
{
"type" : "executiontime" ,
"style" : "plain" ,
"foreground" : "#ffffff" ,
"properties" : {
"always_enabled" : true ,
"prefix" : ""
}
} ,
{
"type" : "battery" ,
"style" : "powerline" ,
"invert_powerline" : true ,
"powerline_symbol" : "\uE0B2" ,
"foreground" : "#ffffff" ,
"background" : "#f36943" ,
2021-11-25 04:55:03 -08:00
"background_templates" : [
"{{if eq \"Charging\" .State.String}}#40c4ff{{end}}" ,
"{{if eq \"Discharging\" .State.String}}#ff5722{{end}}" ,
"{{if eq \"Full\" .State.String}}#4caf50{{end}}"
] ,
2021-11-07 08:42:56 -08:00
"properties" : {
"discharging_icon" : "\uF57D " ,
"charging_icon" : "\uF588 " ,
"charged_icon" : "\uF583 " ,
"postfix" : "% "
}
2021-11-01 23:15:59 -07:00
} ,
{
2021-11-07 08:42:56 -08:00
"type" : "time" ,
"style" : "diamond" ,
"invert_powerline" : true ,
"leading_diamond" : "" ,
"trailing_diamond" : "\uE0B4" ,
"background" : "#61afef" ,
"foreground" : "#ffffff" ,
"properties" : {
"time_format" : "15:04 (Mon)"
}
2021-11-01 23:15:59 -07:00
}
2021-11-07 08:42:56 -08:00
]
}
] ,
"final_space" : true ,
"console_title" : true ,
"console_title_style" : "template" ,
2022-01-17 04:16:04 -08:00
"console_title_template" : "{{.UserName}}@{{.HostName}} : {{.Folder}}"
2021-11-07 08:42:56 -08:00
}