Last active
July 8, 2023 11:42
-
-
Save koo04/00d5c41b5ac060e958645fde9a878e3f to your computer and use it in GitHub Desktop.
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", | |
| "segments": [ | |
| { | |
| "background": "#0077c2", | |
| "foreground": "#ffffff", | |
| "leading_diamond": "\u256d\u2500\ue0b6", | |
| "properties": { | |
| "template": " {{ if .WSL }}\ue712 {{ else }}\uf17a {{ end }}" | |
| }, | |
| "style": "diamond", | |
| "type": "os" | |
| }, | |
| { | |
| "background": "#ef5350", | |
| "foreground": "#FFFB38", | |
| "properties": { | |
| "root_icon": "\uf292", | |
| "template": "<parentBackground>\ue0b0</> \uf0e7 " | |
| }, | |
| "style": "diamond", | |
| "type": "root" | |
| }, | |
| { | |
| "background": "#444444", | |
| "foreground": "#E4E4E4", | |
| "powerline_symbol": "\ue0b0", | |
| "properties": { | |
| "style": "full", | |
| "template": " {{ .Path }} " | |
| }, | |
| "style": "powerline", | |
| "type": "path" | |
| }, | |
| { | |
| "background": "#FFFB38", | |
| "background_templates": [ | |
| "{{ if or (.Working.Changed) (.Staging.Changed) }}#ffeb95{{ end }}", | |
| "{{ if and (gt .Ahead 0) (gt .Behind 0) }}#c5e478{{ end }}", | |
| "{{ if gt .Ahead 0 }}#C792EA{{ end }}", | |
| "{{ if gt .Behind 0 }}#C792EA{{ end }}" | |
| ], | |
| "foreground": "#011627", | |
| "powerline_symbol": "\ue0b0", | |
| "properties": { | |
| "branch_icon": "\ue725 ", | |
| "fetch_status": true, | |
| "fetch_upstream_icon": true, | |
| "template": " {{ .HEAD }} {{ if .Working.Changed }}{{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}<#ef5350> \uf046 {{ .Staging.String }}</>{{ end }} " | |
| }, | |
| "style": "powerline", | |
| "type": "git" | |
| } | |
| ], | |
| "type": "prompt" | |
| }, | |
| { | |
| "alignment": "right", | |
| "segments": [ | |
| { | |
| "background": "#FFFB38", | |
| "foreground": "#011627", | |
| "leading_diamond": " \ue0b6", | |
| "properties": { | |
| "template": "\uE235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} " | |
| }, | |
| "style": "diamond", | |
| "trailing_diamond": "\ue0b4", | |
| "type": "python" | |
| }, | |
| { | |
| "background": "#40c4ff", | |
| "foreground": "#ffffff", | |
| "leading_diamond": " \ue0b6", | |
| "properties": { | |
| "template": "\ue724 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" | |
| }, | |
| "style": "diamond", | |
| "trailing_diamond": "\ue0b4", | |
| "type": "go" | |
| }, | |
| { | |
| "background": "#40c4ff", | |
| "foreground": "#ffffff", | |
| "leading_diamond": " \ue0b6", | |
| "properties": { | |
| "fetch_package_manager": true, | |
| "npm_icon": " <#cc3a3a>\ue5fa</> ", | |
| "template": "\ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}", | |
| "yarn_icon": " <#348cba>\uf61a</>" | |
| }, | |
| "style": "diamond", | |
| "trailing_diamond": "\ue0b4", | |
| "type": "node" | |
| }, | |
| { | |
| "background": "#303030", | |
| "foreground": "#3C873A", | |
| "leading_diamond": " \ue0b6", | |
| "properties": { | |
| "template": "\ue266 {{ (div ((sub .PhysicalTotalMemory .PhysicalFreeMemory)|float64) 1000000000.0) }}/{{ (div .PhysicalTotalMemory 1000000000.0) }}GB " | |
| }, | |
| "style": "diamond", | |
| "trailing_diamond": "\ue0b4", | |
| "type": "sysinfo" | |
| } | |
| ], | |
| "type": "prompt" | |
| }, | |
| { | |
| "alignment": "left", | |
| "newline": true, | |
| "segments": [ | |
| { | |
| "foreground": "#21c7c7", | |
| "properties": { | |
| "template": "\u2570\u2500" | |
| }, | |
| "style": "plain", | |
| "type": "text" | |
| }, | |
| { | |
| "foreground": "#e0f8ff", | |
| "foreground_templates": [ | |
| "{{ if gt .Code 0 }}#ef5350{{ end }}" | |
| ], | |
| "properties": { | |
| "always_enabled": true, | |
| "template": "\u276f " | |
| }, | |
| "style": "plain", | |
| "type": "exit" | |
| } | |
| ], | |
| "type": "prompt" | |
| } | |
| ], | |
| "osc99": true, | |
| "version": 1 | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment