Created
September 19, 2025 21:22
-
-
Save albersonmiranda/0970be3f8cb0d234ca0693a600d9c0df to your computer and use it in GitHub Desktop.
Tokyo (Oh-my-Posh) theme + Python venv
This file contains hidden or 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", | |
| "leading_diamond": "<#7eb8da>\u250f</>", | |
| "segments": [ | |
| { | |
| "foreground": "#7eb8da", | |
| "properties": { | |
| "time_format": "01/02/2006 @ 3:04:05 PM MST" | |
| }, | |
| "style": "diamond", | |
| "template": "[<#ffffff>\uf073</> {{ .CurrentDate | date .Format }}]", | |
| "type": "time" | |
| }, | |
| { | |
| "foreground": "#7eb8da", | |
| "style": "plain", | |
| "template": "[<#ffffff>\ueb99</> {{ .UserName }} :: <#ffffff>\uf108</> {{ .HostName }}]", | |
| "type": "session" | |
| }, | |
| { | |
| "foreground": "#be9ddf", | |
| "style": "diamond", | |
| "template": "[<#ffffff>\ue266</> RAM: {{ (div ((sub .PhysicalTotalMemory .PhysicalAvailableMemory)|float64) 1073741824.0) }}/{{ (div .PhysicalTotalMemory 1073741824.0) }}GB]", | |
| "type": "sysinfo" | |
| }, | |
| { | |
| "foreground": "#f36943", | |
| "foreground_templates": [ | |
| "{{if eq \"Charging\" .State.String}}#40c4ff{{end}}", | |
| "{{if eq \"Discharging\" .State.String}}#ff5722{{end}}", | |
| "{{if eq \"Full\" .State.String}}#4caf50{{end}}" | |
| ], | |
| "properties": { | |
| "charged_icon": "<#ffffff>\ue22f</> ", | |
| "charging_icon": "\ueb2d ", | |
| "discharging_icon": "<#ffff00>\uf244</> " | |
| }, | |
| "style": "plain", | |
| "template": "[{{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}\uf295]", | |
| "type": "battery" | |
| }, | |
| { | |
| "foreground": "#be9ddf", | |
| "properties": { | |
| "style": "dallas", | |
| "threshold": 0 | |
| }, | |
| "style": "diamond", | |
| "template": "[<#ffffff>\uf252</> {{ .FormattedMs }}s]", | |
| "type": "executiontime" | |
| } | |
| ], | |
| "type": "prompt" | |
| }, | |
| { | |
| "alignment": "left", | |
| "newline": true, | |
| "leading_diamond": "<#7eb8da>\u2523</>", | |
| "segments": [ | |
| { | |
| "foreground": "#7eb8da", | |
| "style": "diamond", | |
| "template": " <#ffd43b>\ue235</> {{ if .Venv }}venv: ({{ .Venv }}){{ else }}venv: base{{ end }} ", | |
| "type": "python", | |
| "properties": { | |
| "display_mode": "always", | |
| "fetch_virtual_env": true, | |
| "home_enabled": true | |
| } | |
| }, | |
| { | |
| "foreground": "#ffa5d8", | |
| "style": "diamond", | |
| "template": "[{{ if .Error }}{{ .Error }}{{ else }}{{ if .Name }}<#ffffff>\uf487</> {{ .Name }}{{ end }}{{ if .Target }} {{ .Target }}{{ end }}{{ end }}]", | |
| "type": "project" | |
| } | |
| ], | |
| "type": "prompt" | |
| }, | |
| { | |
| "alignment": "left", | |
| "newline": true, | |
| "leading_diamond": "<#7eb8da>\u2523</>", | |
| "segments": [ | |
| { | |
| "foreground": "#7eb8da", | |
| "properties": { | |
| "style": "full" | |
| }, | |
| "style": "diamond", | |
| "template": "[<#ffffff>\uf115</> <#98bfad>{{ .Path }}</>]", | |
| "type": "path" | |
| }, | |
| { | |
| "foreground": "#ffa5d8", | |
| "properties": { | |
| "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" | |
| } | |
| ], | |
| "type": "prompt" | |
| }, | |
| { | |
| "alignment": "left", | |
| "newline": true, | |
| "leading_diamond": "<#7eb8da>\u2514\u2500</>", | |
| "segments": [ | |
| { | |
| "style": "diamond", | |
| "template": "<#ffff00>[#]</>", | |
| "type": "root" | |
| }, | |
| { | |
| "foreground": "#ffa5d8", | |
| "style": "diamond", | |
| "template": "[<#ffffff>\uea6c</> Error, check your command]", | |
| "type": "status" | |
| }, | |
| { | |
| "style": "diamond", | |
| "template": ">", | |
| "type": "text" | |
| } | |
| ], | |
| "type": "prompt" | |
| } | |
| ], | |
| "final_space": true, | |
| "secondary_prompt": { | |
| "background": "transparent", | |
| "template": " " | |
| }, | |
| "valid_line": { | |
| "background": "transparent", | |
| "template": "> " | |
| }, | |
| "error_line": { | |
| "background": "transparent", | |
| "template": "<#ff0000>\uea87</> " | |
| }, | |
| "version": 3 | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment