Skip to content

Instantly share code, notes, and snippets.

@DrNickRedfern
Created April 8, 2024 19:16
Show Gist options
  • Save DrNickRedfern/99a69c4fe6b71710e36212a3a6030b1c to your computer and use it in GitHub Desktop.
Save DrNickRedfern/99a69c4fe6b71710e36212a3a6030b1c to your computer and use it in GitHub Desktop.
Kyoto: variation on the Tokyo theme for Oh My Posh
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"style": "plain",
"foreground": "#51829b",
"template": "\u2552[<#ffffff>\uF007</> {{ .UserName }}@{{ .HostName }}]",
"type": "session"
},
{
"foreground": "#51829b",
"properties": {
"branch_icon": " ",
"branch_max_length": 25,
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true
},
"style": "powerline",
"template": "[<#ffffff>{{ .UpstreamIcon }}</> {{ .RepoName }} {{ .HEAD }} {{ .BranchStatus }} {{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \ueb4b {{ .StashCount }}{{ end }}]",
"type": "git"
},
{
"foreground": "#51829b",
"style": "plain",
"template": "[\uf0e7]",
"type": "root"
},
{
"foreground": "#eadfb4",
"style": "powerline",
"template": "[<#ffffff>\uf06a</> Error]",
"type": "status"
}
],
"type": "prompt"
},
{
"alignment": "right",
"segments": [
{
"foreground": "#f6995c",
"style": "diamond",
"template": "[<#ffffff>\ue266</> CPU: {{ round .PhysicalPercentUsed .Precision }}% | <#ffffff>\ue266</> RAM: {{ (div ((sub .PhysicalTotalMemory .PhysicalFreeMemory)|float64) 1073741824.0) }}/{{ (div .PhysicalTotalMemory 1073741824.0) }}GB]",
"type": "sysinfo"
},
{
"foreground": "#f6995c",
"properties": {
"time_format": "<#ffffff>\uf073</> 2006-01-02 <#ffffff>\uf017</> 15:04"
},
"style": "diamond",
"template": "[{{ .CurrentDate | date .Format }}]\u2555",
"type": "time"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "#51829b",
"properties": {
"style": "full"
},
"style": "plain",
"template": "\u255e[<#9bb0c1>{{ .Path }}</>]",
"type": "path"
}
],
"type": "prompt"
},
{
"alignment": "right",
"segments": [
{
"foreground": "#f6995c",
"properties": {
"style": "dallas",
"threshold": 0
},
"style": "diamond",
"template": "[<#ffffff>\uf252</> {{ .FormattedMs }}s]\u255b",
"type": "executiontime"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "#51829b",
"style": "plain",
"template": "\u2558[>]",
"type": "text"
}
],
"type": "prompt"
}
],
"version": 2,
"final_space": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment