mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-09 20:44:03 -08:00
theme: add tokyo
This commit is contained in:
parent
96e14f3b11
commit
1668949037
116
themes/tokyo.omp.json
Normal file
116
themes/tokyo.omp.json
Normal file
|
@ -0,0 +1,116 @@
|
|||
{
|
||||
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
||||
"blocks": [
|
||||
{
|
||||
"alignment": "left",
|
||||
"segments": [
|
||||
{
|
||||
"foreground": "#7eb8da",
|
||||
"style": "plain",
|
||||
"template": "\u250f[<#ffffff>\uf508</> {{ .UserName }} from <#ffffff>\ufcbe</> {{ .HostName }}]",
|
||||
"type": "session"
|
||||
},
|
||||
{
|
||||
"foreground": "#be9ddf",
|
||||
"properties": {
|
||||
"style": "dallas",
|
||||
"threshold": 0
|
||||
},
|
||||
"style": "diamond",
|
||||
"template": "[<#ffffff>\uf252</> {{ .FormattedMs }}s]",
|
||||
"type": "executiontime"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"root_icon": "\uf292"
|
||||
},
|
||||
"style": "diamond",
|
||||
"template": "\uf0e7",
|
||||
"type": "root"
|
||||
},
|
||||
{
|
||||
"foreground": "#be9ddf",
|
||||
"style": "diamond",
|
||||
"template": "[<#ffffff>\uf85a</> RAM: {{ (div ((sub .PhysicalTotalMemory .PhysicalFreeMemory)|float64) 1000000000.0) }}/{{ (div .PhysicalTotalMemory 1000000000.0) }}GB]",
|
||||
"type": "sysinfo"
|
||||
},
|
||||
{
|
||||
"foreground": "#7eb8da",
|
||||
"properties": {
|
||||
"time_format": "Monday at 3:04:05 PM"
|
||||
},
|
||||
"style": "diamond",
|
||||
"template": "[<#ffffff>\uf5ef</> {{ .CurrentDate | date .Format }}]",
|
||||
"type": "time"
|
||||
},
|
||||
{
|
||||
"foreground": "#ffa5d8",
|
||||
"properties": {
|
||||
"fetch_stash_count": true,
|
||||
"fetch_status": true,
|
||||
"fetch_upstream_icon": true
|
||||
},
|
||||
"style": "plain",
|
||||
"template": "[<#ffffff>{{ .UpstreamIcon }}</>{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} <#ffffff>\uf044</> {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} <#ffffff>\uf046</> {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} <#ffffff>\uf692</> {{ .StashCount }}{{ end }}]",
|
||||
"type": "git"
|
||||
},
|
||||
{
|
||||
"foreground": "#ffa5d8",
|
||||
"style": "plain",
|
||||
"template": "[{{ .Profile }}{{if .Region}}@{{ .Region }}{{ end }}]",
|
||||
"type": "aws"
|
||||
},
|
||||
{
|
||||
"foreground": "#ffa5d8",
|
||||
"style": "plain",
|
||||
"template": "[{{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}}]",
|
||||
"type": "kubectl"
|
||||
},
|
||||
{
|
||||
"foreground": "#ffa5d8",
|
||||
"style": "plain",
|
||||
"template": "[\uf0e7]",
|
||||
"type": "root"
|
||||
},
|
||||
{
|
||||
"foreground": "#ffa5d8",
|
||||
"style": "powerline",
|
||||
"template": "[<#ffffff>\ufc8d</> Error, check your command]",
|
||||
"type": "exit"
|
||||
}
|
||||
],
|
||||
"type": "prompt"
|
||||
},
|
||||
{
|
||||
"alignment": "left",
|
||||
"newline": true,
|
||||
"segments": [
|
||||
{
|
||||
"foreground": "#7eb8da",
|
||||
"properties": {
|
||||
"style": "full"
|
||||
},
|
||||
"style": "plain",
|
||||
"template": "\u2516[<#98bfad>{{ .Path }}</>]",
|
||||
"type": "path"
|
||||
}
|
||||
],
|
||||
"type": "prompt"
|
||||
},
|
||||
{
|
||||
"alignment": "left",
|
||||
"newline": true,
|
||||
"segments": [
|
||||
{
|
||||
"foreground": "#7eb8da",
|
||||
"style": "plain",
|
||||
"template": "\u2514\u2500Δ",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"type": "prompt"
|
||||
}
|
||||
],
|
||||
"final_space": true,
|
||||
"version": 2
|
||||
}
|
Loading…
Reference in a new issue