feat(theme): updated tiwahu theme

Template tweaks. Additional segments. Still looks pretty.
This commit is contained in:
Timothy Huber 2022-03-05 02:21:50 -05:00 committed by Jan De Dobbeleer
parent 7099d1932f
commit 6a745ef6c3

View file

@ -5,67 +5,112 @@
"alignment": "left", "alignment": "left",
"segments": [ "segments": [
{ {
"type": "executiontime",
"style": "plain",
"background": "#007ACC",
"foreground": "#222222",
"properties": {
"threshold": 321,
"style": "austin",
"template": " {{ .FormattedMs }} "
}
},
{
"type": "exit",
"style": "plain",
"background": "#880000", "background": "#880000",
"foreground": "#ff8888", "foreground": "#ff8888",
"properties": { "properties": {
"template": " {{ if gt .Code 0 }}\uf00d {{ .Code }}{{ else }}\uf42e{{ end }} " "template": "{{ if gt .Code 0 }} {{ .Code }} {{ end }}"
}, }
"style": "plain",
"type": "exit"
}, },
{ {
"type": "root",
"style": "plain",
"background": "#ffcc88", "background": "#ffcc88",
"foreground": "#222222", "foreground": "#222222",
"properties": { "properties": {
"template": "\uf0e7" "template": "\uf0e7"
}, }
"style": "plain",
"type": "root"
}, },
{ {
"type": "session",
"style": "plain",
"background": "#222222", "background": "#222222",
"foreground": "#666666", "foreground": "#666666",
"powerline_symbol": "\ue0b8",
"properties": { "properties": {
"template": " {{ if .SSHSession }}\uf817 {{ end }}{{ .UserName }}@{{ .HostName }} " "template": " {{ if .SSHSession }}\uf817 {{ end }}{{ .UserName }}@{{ .HostName }} "
}, }
"style": "plain",
"type": "session"
}, },
{ {
"type": "os",
"style": "plain",
"background": "#222222",
"foreground": "#666666",
"properties": {
"template": "{{ if .WSL }}({{ end }}{{.Icon}}{{ if .WSL }}){{ end }} "
}
},
{
"type": "path",
"style": "plain",
"background": "#444444", "background": "#444444",
"foreground": "#cccccc", "foreground": "#cccccc",
"powerline_symbol": "\ue0b8",
"properties": { "properties": {
"folder_icon": "\u2026", "folder_icon": "\u2026",
"style": "mixed", "style": "mixed",
"template": " {{ .Path }} " "template": " {{ .Path }} "
}, }
"style": "plain",
"type": "path"
}, },
{ {
"type": "git",
"style": "plain",
"background": "#f14e32", "background": "#f14e32",
"foreground": "#f0efe7", "foreground": "#f0efe7",
"powerline_symbol": "\ue0b8",
"properties": { "properties": {
"branch_icon": "\ue725 ", "branch_icon": "\ue725 ",
"fetch_status": true, "template": " {{ .HEAD }} {{ .BranchStatus }}{{ if .Working.Changed }} \uF044 {{ .Working.String }}{{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uF046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0}} \uF692 {{ .StashCount }}{{ end }}{{ if gt .WorktreeCount 0}} \uf1bb {{ .WorktreeCount }}{{ end }} "
"fetch_upstream_icon": false, }
"template": " {{ .HEAD }} {{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0}} \uf692 {{ .StashCount }}{{ end }}{{ if gt .WorktreeCount 0}} \uf1bb {{ .WorktreeCount }}{{ end }} "
},
"style": "plain",
"type": "git"
}, },
{ {
"type": "dotnet",
"style": "plain",
"background": "#7014eb", "background": "#7014eb",
"foreground": "#ffffff", "foreground": "#ffffff",
"powerline_symbol": "\ue0b8",
"properties": { "properties": {
"template": " \ue77f {{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }} " "fetch_version": false,
"template": " \ue77f "
}
}, },
{
"type": "go",
"style": "plain", "style": "plain",
"type": "dotnet" "foreground": "#ffffff",
"background": "#7FD5EA",
"properties": {
"fetch_version": false,
"template": " \uFCD1 "
}
},
{
"type": "python",
"style": "plain",
"foreground": "#100e23",
"background": "#906cff",
"properties": {
"fetch_version": false,
"template": " \uE235 "
}
},
{
"type": "rust",
"style": "plain",
"foreground": "#193549",
"background": "#99908a",
"properties": {
"fetch_version": false,
"template": " \uE7a8 "
}
} }
], ],
"type": "prompt" "type": "prompt"
@ -75,12 +120,12 @@
"newline": true, "newline": true,
"segments": [ "segments": [
{ {
"type": "text",
"style": "plain",
"foreground": "#007ACC", "foreground": "#007ACC",
"properties": { "properties": {
"template": "\u276f " "template": "\u276f "
}, }
"style": "plain",
"type": "text"
} }
], ],
"type": "prompt" "type": "prompt"