2022-09-23 18:36:53 -07:00
{
"$schema" : "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json" ,
"version" : 2 ,
"console_title_template" : "{{ if or .Root .Segments.Git.RepoName }}[ {{ if .Root }}Admin{{ end }}{{ if and .Root .Segments.Git.RepoName }}@{{ end }}{{ if .Segments.Git.RepoName }}{{ .Segments.Git.RepoName }}{{ end }} ]{{ end }} {{ .Folder }}" ,
"palette" : {
"background-color" : "transparent" ,
"cloud-text-amazon" : "#4285F4" ,
"cloud-text-azure" : "#4285F4" ,
"cloud-text-gcp" : "#4285F4" ,
2024-04-15 13:57:05 -07:00
"cloud-text-firebase" : "#FFA000" ,
2022-09-23 18:36:53 -07:00
"error-background" : "#dd0033" ,
"error-text" : "#242424" ,
"git-text" : "#238636" ,
"kubernetes-text" : "#FFBB00" ,
2024-05-03 22:56:15 -07:00
"talosctl-text" : "#FF6C00" ,
2022-09-23 18:36:53 -07:00
"symbol-color" : "#ffffff" ,
"timer-text" : "#dd0033"
} ,
"blocks" : [
{
"alignment" : "left" ,
"newline" : false ,
"segments" : [
{
"background" : "p:background-color" ,
"foreground" : "p:timer-text" ,
"properties" : {
"time_format" : "15:04:05"
} ,
"style" : "powerline" ,
"powerline_symbol" : "" ,
2023-05-09 02:08:45 -07:00
"template" : " <p:symbol-color>\uebaa</> {{ dateInZone .Format .CurrentDate \"UTC\" }} " ,
2022-09-23 18:36:53 -07:00
"type" : "time"
} ,
{
"background" : "p:background-color" ,
"foreground" : "p:kubernetes-text" ,
"style" : "powerline" ,
"powerline_symbol" : "\ue0b4" ,
2023-05-09 02:08:45 -07:00
"template" : "<p:symbol-color>\uf308</> {{.Context}}{{if .Namespace}} \uf061 {{.Namespace}}{{end}}" ,
2022-09-23 18:36:53 -07:00
"type" : "kubectl"
} ,
2024-05-03 22:56:15 -07:00
{
"background" : "p:background-color" ,
"foreground" : "p:talosctl-text" ,
"style" : "powerline" ,
"powerline_symbol" : "\ue0b4" ,
"template" : "<p:symbol-color>\udb84\udcfe</> {{.Context}}" ,
"type" : "talosctl"
} ,
2022-09-23 18:36:53 -07:00
{
"background" : "p:background-color" ,
"foreground" : "p:cloud-text-amazon" ,
"style" : "powerline" ,
"powerline_symbol" : "\ue0b4" ,
"template" : " <p:symbol-color>\uf270</> {{.Profile}}{{if .Region}} \uf061 {{.Region}}{{end}}" ,
"type" : "aws"
} ,
{
"background" : "p:background-color" ,
"foreground" : "p:cloud-text-azure" ,
"properties" : {
"source" : "cli"
} ,
"style" : "powerline" ,
"powerline_symbol" : "\ue0b4" ,
2023-07-13 22:20:34 -07:00
"template" : " <p:symbol-color>\uebd8</> {{ .Name }}" ,
2022-09-23 18:36:53 -07:00
"type" : "az"
} ,
{
"background" : "p:background-color" ,
"foreground" : "p:cloud-text-azure" ,
"properties" : {
"source" : "pwsh"
} ,
"style" : "powerline" ,
"powerline_symbol" : "\ue0b4" ,
2023-07-13 22:20:34 -07:00
"template" : " <p:symbol-color>\uebd8</> (PS) {{ .Name }}" ,
2022-09-23 18:36:53 -07:00
"type" : "az"
} ,
{
"background" : "p:background-color" ,
"foreground" : "p:cloud-text-gcp" ,
"style" : "powerline" ,
"powerline_symbol" : "\ue0b4" ,
"template" : " <p:symbol-color>\ue7b2</> {{ .Project }}" ,
"type" : "gcp"
} ,
2024-04-15 13:57:05 -07:00
{
"background" : "p:background-color" ,
"foreground" : "p:cloud-text-firebase" ,
"style" : "powerline" ,
"powerline_symbol" : "\ue0b4" ,
"template" : " <p:symbol-color>\udb82\udd67</> {{ .Project }}" ,
"type" : "firebase"
} ,
2022-09-23 18:36:53 -07:00
{
"background" : "p:background-color" ,
"foreground" : "p:git-text" ,
"style" : "powerline" ,
"powerline_symbol" : "\ue0b4" ,
"template" : " <p:symbol-color>\uF408</> {{ .RepoName }}" ,
"type" : "git"
} ,
{
"background" : "p:background-color" ,
"foreground" : "p:timer-text" ,
"properties" : {
"style" : "austin" ,
"threshold" : 1
} ,
"style" : "powerline" ,
"powerline_symbol" : "\ue0b4" ,
2023-05-09 02:08:45 -07:00
"template" : " <p:symbol-color>\ueba2</> {{ .FormattedMs }}" ,
2022-09-23 18:36:53 -07:00
"type" : "executiontime"
} ,
{
"background" : "p:background-color" ,
"foreground" : "p:symbol-color" ,
"properties" : {
"always_enabled" : true
} ,
"style" : "powerline" ,
"powerline_symbol" : "\ue0b4" ,
2023-05-09 02:08:45 -07:00
"template" : "{{ if eq .Code 0 }} \uf004 {{ end }}" ,
2023-07-23 00:29:54 -07:00
"type" : "status"
2022-09-23 18:36:53 -07:00
} ,
{
"background" : "p:error-background" ,
"foreground" : "p:error-text" ,
"leading_diamond" : " \ue0c5" ,
"trailing_diamond" : "\ue0c4" ,
"style" : "diamond" ,
2023-07-23 00:29:54 -07:00
"template" : "{{ if ne .Code 0 }} \uf00d {{ .Code }}{{ if (ne (reason .Code) (toString .Code)) }} - {{ reason .Code }}{{else}}{{ end }} {{ end }}" ,
"type" : "status"
2022-09-23 18:36:53 -07:00
}
] ,
"type" : "prompt"
} ,
{
"alignment" : "left" ,
"newline" : true ,
"segments" : [
{
"background" : "p:background-color" ,
"foreground" : "p:timer-text" ,
"properties" : {
"time_format" : "15:04:05"
} ,
"style" : "powerline" ,
"powerline_symbol" : "" ,
"template" : " <p:symbol-color>\uf49b</> {{ .CurrentDate | date .Format }} " ,
"type" : "time"
} ,
{
"background" : "p:background-color" ,
"foreground" : "p:symbol-color" ,
"properties" : {
"folder_separator_icon" : "/" ,
"style" : "folder"
} ,
"style" : "powerline" ,
"powerline_symbol" : "\ue0b4" ,
"template" : "\ue5ff {{ path .Path .Location }} " ,
"type" : "path"
} ,
{
"background" : "p:background-color" ,
"foreground" : "p:git-text" ,
"properties" : {
"fetch_stash_count" : true ,
"fetch_status" : true
} ,
"style" : "powerline" ,
"powerline_symbol" : "\ue0b4" ,
2023-05-09 02:08:45 -07:00
"template" : "{{ .HEAD }}{{ 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 }} \ueb4b {{ .StashCount }}{{ end }} " ,
2022-09-23 18:36:53 -07:00
"type" : "git"
}
] ,
"type" : "prompt"
} ,
{
"alignment" : "left" ,
"newline" : true ,
"segments" : [
{
"background" : "p:error-background" ,
"foreground" : "p:backgrond-color" ,
"style" : "diamond" ,
"leading_diamond" : "\ue0c7" ,
"trailing_diamond" : "\ue0c6" ,
"template" : " \uf0e7 " ,
"type" : "root"
} ,
{
"background" : "p:background-color" ,
"foreground" : "p:git-text" ,
"style" : "plain" ,
"template" : "{{ if .Root }}{{ else }}<p:symbol-color> > </>{{ end }}" ,
"type" : "text"
}
] ,
"type" : "prompt"
}
]
2023-07-13 22:20:34 -07:00
}