Created
June 29, 2023 08:33
-
-
Save moverperfect/7f21b24a1c9e763799b771184d04dba4 to your computer and use it in GitHub Desktop.
Customised Tokyo Oh My Posh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"blocks": [ | |
{ | |
"alignment": "left", | |
"segments": [ | |
{ | |
"foreground": "#7eb8da", | |
"style": "plain", | |
"template": "\u250f[<#ffffff>\ueb99</> {{ if .SSHSession }} {{ end }}{{ .UserName }} from <#ffffff>\uf108</> {{ .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": "#ffa5d8", | |
"properties": { | |
"fetch_stash_count": true, | |
"fetch_status": true, | |
"fetch_upstream_icon": true | |
}, | |
"style": "plain", | |
"template": "[<#ffffff>{{ .UpstreamIcon }}</>{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ 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>\ueb4b</> {{ .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>\uea6c</> Error, check your command]", | |
"type": "exit" | |
}, | |
{ | |
"foreground": "#ffa5d8", | |
"style": "powerline", | |
"template": "[tf: {{.WorkspaceName}}]", | |
"type": "terraform" | |
}, | |
{ | |
"foreground": "#ffa5d8", | |
"style": "powerline", | |
"template": "[ {{ .Full }}]", | |
"type": "node" | |
}, | |
{ | |
"foreground": "#ffa5d8", | |
"properties": { | |
"display_mode": "files" | |
}, | |
"style": "powerline", | |
"template": "[ {{ .Full }}]", | |
"type": "python" | |
} | |
], | |
"type": "prompt" | |
}, | |
{ | |
"alignment": "right", | |
"segments": [ | |
{ | |
"foreground": "#7eb8da", | |
"style": "plain", | |
"template": "[Update available]", | |
"type": "upgrade" | |
}, | |
{ | |
"foreground": "#7eb8da", | |
"properties": { | |
"time_format": "Monday at 3:04:05 PM" | |
}, | |
"style": "diamond", | |
"template": "[<#ffffff>\uf073</> {{ .CurrentDate | date .Format }}]", | |
"type": "time" | |
}, | |
{ | |
"foreground": "#be9ddf", | |
"style": "diamond", | |
"template": "[<#ffffff>\ue266</> CPU: {{ round .Load1 .Precision }}% <#ffffff>\ue266</> RAM: {{ (div ((sub .PhysicalTotalMemory .PhysicalAvailableMemory)|float64) 1000000.0) }}/{{ (div .PhysicalTotalMemory 1000000.0) }}MB]", | |
"type": "sysinfo" | |
} | |
], | |
"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 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment