Created
November 30, 2023 10:33
-
-
Save saalaus/eca9f22132b5ad287b1fc3c157d835e7 to your computer and use it in GitHub Desktop.
Oh my posh config
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": "╭─", | |
| "style": "diamond", | |
| "template": " {{ .Name }} ", | |
| "type": "shell" | |
| }, | |
| { | |
| "background": "#ef5350", | |
| "foreground": "#FFFB38", | |
| "style": "diamond", | |
| "template": "<parentBackground></> ", | |
| "type": "root" | |
| }, | |
| { | |
| "background": "#FF9248", | |
| "foreground": "#2d3436", | |
| "powerline_symbol": "", | |
| "properties": { | |
| "folder_icon": " ", | |
| "home_icon": "", | |
| "style": "folder" | |
| }, | |
| "style": "powerline", | |
| "template": " {{ .Path }} ", | |
| "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": "", | |
| "properties": { | |
| "branch_icon": " ", | |
| "fetch_status": true, | |
| "fetch_upstream_icon": true | |
| }, | |
| "style": "powerline", | |
| "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}<#ef5350> {{ .Staging.String }}</>{{ end }} ", | |
| "type": "git" | |
| }, | |
| { | |
| "background": "#83769c", | |
| "foreground": "#ffffff", | |
| "properties": { | |
| "style": "roundrock", | |
| "threshold": 0 | |
| }, | |
| "style": "diamond", | |
| "template": " {{ .FormattedMs }}⠀", | |
| "trailing_diamond": "", | |
| "type": "executiontime" | |
| } | |
| ], | |
| "type": "prompt" | |
| }, | |
| { | |
| "alignment": "right", | |
| "segments": [ | |
| { | |
| "background": "#303030", | |
| "foreground": "#3C873A", | |
| "leading_diamond": "", | |
| "properties": { | |
| "fetch_package_manager": true, | |
| "npm_icon": " <#cc3a3a></> ", | |
| "yarn_icon": " <#348cba></>" | |
| }, | |
| "style": "diamond", | |
| "template": " {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}", | |
| "trailing_diamond": " ", | |
| "type": "node" | |
| }, | |
| { | |
| "background": "#306998", | |
| "foreground": "#FFE873", | |
| "leading_diamond": "", | |
| "style": "diamond", | |
| "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ else }}{{ .Full }}{{ end }}{{ end }}", | |
| "trailing_diamond": " ", | |
| "type": "python" | |
| }, | |
| { | |
| "background": "#ffffff", | |
| "foreground": "#06aad5", | |
| "leading_diamond": "", | |
| "style": "diamond", | |
| "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", | |
| "trailing_diamond": " ", | |
| "type": "go" | |
| }, | |
| { | |
| "background": "#f3f0ec", | |
| "foreground": "#925837", | |
| "leading_diamond": "", | |
| "style": "diamond", | |
| "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", | |
| "trailing_diamond": " ", | |
| "type": "rust" | |
| }, | |
| { | |
| "background": "#e1e8e9", | |
| "foreground": "#055b9c", | |
| "leading_diamond": " ", | |
| "style": "diamond", | |
| "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", | |
| "trailing_diamond": " ", | |
| "type": "dart" | |
| }, | |
| { | |
| "background": "#b2bec3", | |
| "foreground": "#222222", | |
| "leading_diamond": "", | |
| "properties": { | |
| "linux": "", | |
| "macos": "", | |
| "windows": "" | |
| }, | |
| "style": "diamond", | |
| "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}}<#b2bec3> </>", | |
| "type": "os" | |
| }, | |
| { | |
| "background": "#40c4ff", | |
| "foreground": "#ffffff", | |
| "invert_powerline": true, | |
| "leading_diamond": "<#40c4ff></>", | |
| "properties": { | |
| "time_format": "02.01, 15:04" | |
| }, | |
| "style": "diamond", | |
| "template": " {{ .CurrentDate | date .Format }} ", | |
| "trailing_diamond": "", | |
| "type": "time" | |
| } | |
| ], | |
| "type": "prompt" | |
| }, | |
| { | |
| "alignment": "left", | |
| "newline": true, | |
| "segments": [ | |
| { | |
| "foreground": "#21c7c7", | |
| "style": "plain", | |
| "template": "╰─", | |
| "type": "text" | |
| }, | |
| { | |
| "foreground": "#e0f8ff", | |
| "foreground_templates": [ | |
| "{{ if gt .Code 0 }}#ef5350{{ end }}" | |
| ], | |
| "properties": { | |
| "always_enabled": true | |
| }, | |
| "style": "plain", | |
| "template": "", | |
| "type": "exit" | |
| } | |
| ], | |
| "type": "prompt" | |
| } | |
| ], | |
| "version": 2 | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment