Created
December 16, 2022 18:16
-
-
Save arnos-stuff/572c19301717268b37296d0adb67c657 to your computer and use it in GitHub Desktop.
My current Oh-My-Posh one-line config file
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": "right", | |
"segments": [ | |
{ | |
"foreground": "#3C873A", | |
"properties": { | |
"fetch_package_manager": true, | |
"npm_icon": " <#cc3a3a>\ue5fa</> ", | |
"yarn_icon": " <#348cba>\uf61a</>" | |
}, | |
"style": "plain", | |
"template": "<#70eeee>(</>{{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}<#70eeee>)</>", | |
"type": "node" | |
}, | |
{ | |
"foreground": "#FFE873", | |
"style": "plain", | |
"template": "<#70eeee>(</>{{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}<#70eeee>)</>", | |
"type": "python" | |
}, | |
{ | |
"foreground": "#ec2729", | |
"style": "plain", | |
"template": "<#70eeee>(</>{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#70eeee>)</>", | |
"type": "java" | |
}, | |
{ | |
"foreground": "#0d6da8", | |
"style": "plain", | |
"template": "<#70eeee>(</>{{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }}<#70eeee>)</>", | |
"type": "dotnet" | |
}, | |
{ | |
"foreground": "#06aad5", | |
"style": "plain", | |
"template": "<#70eeee>(</>{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#70eeee>)</>", | |
"type": "go" | |
}, | |
{ | |
"foreground": "#925837", | |
"style": "plain", | |
"template": "<#70eeee>(</>{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#70eeee>)</>", | |
"type": "rust" | |
}, | |
{ | |
"foreground": "#055b9c", | |
"style": "plain", | |
"template": "<#70eeee>(</>{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#70eeee>)</>", | |
"type": "dart" | |
}, | |
{ | |
"foreground": "#ce092f", | |
"style": "plain", | |
"template": "<#70eeee>(</>{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#70eeee>)</>", | |
"type": "angular" | |
}, | |
{ | |
"foreground": "#70eeee", | |
"style": "plain", | |
"template": "<#1e293b>(</>{{ if .Error }}{{ .Error }}{{ else }}Nx {{ .Full }}{{ end }}<#1e293b>)</>", | |
"type": "nx" | |
}, | |
{ | |
"foreground": "#359a25", | |
"style": "plain", | |
"template": "<#70eeee>(</>{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#70eeee>)</>", | |
"type": "julia" | |
}, | |
{ | |
"foreground": "#9c1006", | |
"style": "plain", | |
"template": "<#70eeee>(</>{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#70eeee>)</>", | |
"type": "ruby" | |
}, | |
{ | |
"foreground": "#5398c2", | |
"style": "plain", | |
"template": "<#70eeee>(</>{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#70eeee>)</>", | |
"type": "azfunc" | |
}, | |
{ | |
"foreground": "#faa029", | |
"style": "plain", | |
"template": "<#70eeee>(</>{{.Profile}}{{if .Region}}@{{.Region}}{{end}}<#70eeee>)</>", | |
"type": "aws" | |
}, | |
{ | |
"foreground": "#316ce4", | |
"style": "plain", | |
"template": "<#70eeee>(</>{{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}}<#70eeee>)</>", | |
"type": "kubectl" | |
}, | |
{ | |
"foreground": "#70eeee", | |
"properties": { | |
"linux": "<#70eeee>\ue27f</>", | |
"macos": "<#70eeee>\ue27f</>", | |
"windows": "<#70eeee>\ue27f</>" | |
}, | |
"style": "plain", | |
"template": "<#70eeee>\u007b</>{{ if .WSL }}WSL at {{ end }}{{.Icon}}<#70eeee>\u007d\u2500</>", | |
"type": "os" | |
}, | |
{ | |
"foreground": "#70eeee", | |
"foreground_templates": [ | |
"{{if eq \"Charging\" .State.String}}#6ed2ff{{end}}", | |
"{{if eq \"Discharging\" .State.String}}#fffd87{{end}}", | |
"{{if eq \"Full\" .State.String}}#86ff82{{end}}" | |
], | |
"properties": { | |
"charged_icon": " \uf58e ", | |
"charging_icon": " \uf1e6 ", | |
"discharging_icon": " \ue234 " | |
}, | |
"style": "plain", | |
"template": "<#70eeee>\u007b</>{{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}% <#70eeee>\u007d\u2500\u2500</>", | |
"type": "battery" | |
}, | |
{ | |
"foreground": "#bd6ee4", | |
"properties": { | |
"time_format": "02 Jan 06 15:04" | |
}, | |
"style": "plain", | |
"template": "<#70eeee>\u007b</> \uf5ef {{ .CurrentDate | date .Format }} <#70eeee>\u007d</>", | |
"type": "time" | |
} | |
], | |
"type": "prompt" | |
}, | |
{ | |
"newline": true, | |
"alignment": "left", | |
"segments": [ | |
{ | |
"foreground": "#70eeee", | |
"style": "plain", | |
"template": " ", | |
"type": "text" | |
}, | |
{ | |
"foreground": "#70eeee", | |
"style": "plain", | |
"template": "::", | |
"type": "text" | |
}, | |
{ | |
"foreground": "#3a9bf1", | |
"properties": { | |
"folder_icon": "\uf07b", | |
"root_icon": "~", | |
"mapped_locations": { | |
"\\\\wsl.localhost\\Ubuntu-20.04": "WSL-U20", | |
"\\\\wsl.localhost\\Ubuntu-18.04": "WSL-U18", | |
"\\\\wsl.localhost\\Ubuntu": "WSL-U", | |
"\\\\wsl.localhost\\Debian": "WSL-D", | |
"\\\\wsl.localhost\\kali-linux": "WSL-K", | |
"\\\\wsl.localhost\\SLES-12": "WSL-S12", | |
"\\\\wsl.localhost\\SLES-15": "WSL-S15", | |
"\\\\wsl.localhost\\OracleLinux_8_5": "WSL-ORA", | |
"\\\\wsl.localhost\\OracleLinux_7_9": "WSL-ORA" | |
} | |
}, | |
"style": "plain" , | |
"template": "<#70eeee>[</>{{ .Path }}<#70eeee>]</>", | |
"type": "path" | |
}, | |
{ | |
"foreground": "#70eeee", | |
"style": "plain", | |
"template": ":: ", | |
"type": "root" | |
} | |
], | |
"type": "prompt" | |
}, | |
{ | |
"alignment": "left", | |
"newline": false, | |
"segments": [ | |
{ | |
"foreground": "#70eeee", | |
"style": "plain", | |
"template": "\u007b", | |
"type": "text" | |
}, | |
{ | |
"foreground": "#70eeee", | |
"style": "plain", | |
"template": "\u007b", | |
"type": "text" | |
}, | |
{ | |
"foreground": "#bd6ee4", | |
"style": "plain", | |
"template": " <#eb27f5>@</>{{ .UserName }} ", | |
"type": "session" | |
}, | |
{ | |
"foreground": "#70eeee", | |
"style": "plain", | |
"template": "\u007d", | |
"type": "text" | |
}, | |
{ | |
"foreground": "#70eeee", | |
"style": "plain", | |
"template": "\u007d", | |
"type": "text" | |
}, | |
{ | |
"foreground": "#e0f8ff", | |
"properties": { | |
"branch_icon": "\ue725 ", | |
"fetch_status": true, | |
"fetch_upstream_icon": true | |
}, | |
"style": "plain", | |
"template": " <#70eeee>[</> {{ .HEAD }}{{ if .Staging.Changed }}<#00AA00> \u25cf {{ .Staging.String }} </>{{ end }}{{ if .Working.Changed }}<#D75F00> \u25cf {{ .Working.String }} </>{{ end }}<#70eeee>]</>", | |
"type": "git" | |
}, | |
{ | |
"foreground": "#8c05e6", | |
"style": "plain", | |
"template": " \u0192(<#eb27f5>\u25cf</>) ", | |
"type": "text" | |
}, | |
{ | |
"foreground": "#70eeee", | |
"foreground_templates": ["{{ if gt .Code 0 }}#ef5350{{ end }}"], | |
"properties": { | |
"always_enabled": true | |
}, | |
"style": "plain", | |
"template": "\u003d\u003d\u276f ", | |
"type": "exit" | |
} | |
], | |
"type": "prompt" | |
} | |
], | |
"version": 2 | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment