Created
May 19, 2023 09:09
-
-
Save Charmatzis/522995088c24b1ed5cb2927a8082c442 to your computer and use it in GitHub Desktop.
oh-my-posh terminal theme
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", | |
| "console_title_template": "{{.Folder}}{{if .Root}} :: root{{end}} :: {{.Shell}}", | |
| "blocks": [ | |
| { | |
| "alignment": "left", | |
| "newline": true, | |
| "segments": [ | |
| { | |
| "foreground": "#ffbebc", | |
| "leading_diamond": "<#ff70a6> </>", | |
| "properties": { | |
| "display_host": true | |
| }, | |
| "style": "diamond", | |
| "template": "{{ .UserName }} <#ffffff>on</>", | |
| "type": "session" | |
| }, | |
| { | |
| "foreground": "#bc93ff", | |
| "properties": { | |
| "time_format": "Monday <#ffffff>at</> 3:04 PM" | |
| }, | |
| "style": "diamond", | |
| "template": " {{ .CurrentDate | date .Format }} ", | |
| "type": "time" | |
| }, | |
| { | |
| "foreground": "#ee79d1", | |
| "properties": { | |
| "branch_icon": " ", | |
| "fetch_stash_count": true, | |
| "fetch_status": true, | |
| "fetch_upstream_icon": true, | |
| "fetch_worktree_count": true | |
| }, | |
| "style": "diamond", | |
| "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} {{ .StashCount }}{{ end }} ", | |
| "type": "git" | |
| } | |
| ], | |
| "type": "prompt" | |
| }, | |
| { | |
| "alignment": "right", | |
| "segments": [ | |
| { | |
| "foreground": "#a9ffb4", | |
| "style": "plain", | |
| "type": "text" | |
| }, | |
| { | |
| "foreground": "#a9ffb4", | |
| "properties": { | |
| "style": "dallas", | |
| "threshold": 0 | |
| }, | |
| "style": "diamond", | |
| "template": " {{ .FormattedMs }}s <#ffffff></>", | |
| "type": "executiontime" | |
| }, | |
| { | |
| "foreground": "#94ffa2", | |
| "style": "diamond", | |
| "template": " <#ffffff>CPU:</> {{ round .PhysicalPercentUsed .Precision }} % ", | |
| "type": "sysinfo" | |
| }, { | |
| "foreground": "#81ff91", | |
| "style": "diamond", | |
| "template": "<#ffffff></> <#ffffff>RAM:</> {{ (div ((sub .PhysicalTotalMemory .PhysicalFreeMemory)|float64) 1000000000.0) }}/{{ (div .PhysicalTotalMemory 1000000000.0) }}GB ", | |
| "type": "sysinfo" | |
| } | |
| ], | |
| "type": "prompt" | |
| }, | |
| { | |
| "alignment": "left", | |
| "newline": true, | |
| "segments": [ | |
| { | |
| "foreground": "#bc93ff", | |
| "properties": { | |
| "alpine": "\uf300", | |
| "fedora": "\uf30a", | |
| "linux": "\ue712", | |
| "mint": "\uf30f", | |
| "windows": "\ue70f" | |
| }, | |
| "style": "diamond", | |
| "template": " {{ if .WSL }}{{ end }}{{.Icon}}", | |
| "type": "os" | |
| }, | |
| { | |
| "foreground": "#ffafd2", | |
| "powerline_symbol": " |", | |
| "style": "powerline", | |
| "template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ", | |
| "type": "python" | |
| }, | |
| { | |
| "type": "docker", | |
| "powerline_symbol": " |", | |
| "foreground": "#0B59E7", | |
| "template": " {{ .Context }} " | |
| }, | |
| { | |
| "type": "go", | |
| "style": "powerline", | |
| "powerline_symbol": " |", | |
| "foreground": "#7FD5EA", | |
| "template": " ﳑ {{ .Full }} " | |
| }, | |
| { | |
| "type": "java", | |
| "style": "powerline", | |
| "powerline_symbol": " |", | |
| "foreground": "#ffafd2", | |
| "template": " {{ .Full }}" | |
| }, | |
| { | |
| "type": "aws", | |
| "style": "powerline", | |
| "powerline_symbol": " |", | |
| "foreground": "#FFA400", | |
| "template": " {{.Profile}}{{if .Region}}@{{.Region}}{{end}}" | |
| }, | |
| { | |
| "type": "az", | |
| "style": "powerline", | |
| "powerline_symbol": " |", | |
| "foreground": "#9ec3f0", | |
| "template": " ﴃ {{ .EnvironmentName }}" | |
| }, | |
| { | |
| "foreground": "#ffafd2", | |
| "leading_diamond": "<#00c7fc> </><#ffafd2></>", | |
| "properties": { | |
| "folder_icon": "", | |
| "folder_separator_icon": " \u00bb ", | |
| "home_icon": "home", | |
| "style": "agnoster_full" | |
| }, | |
| "style": "diamond", | |
| "template": " {{ .Path }} ", | |
| "trailing_diamond": "<#ffafd2> </>", | |
| "type": "path" | |
| }, | |
| { | |
| "foreground": "#A9FFB4", | |
| "foreground_templates": [ | |
| "{{ if gt .Code 0 }}#ef5350{{ end }}" | |
| ], | |
| "properties": { | |
| "always_enabled": true | |
| }, | |
| "style": "plain", | |
| "template": "{{ if .WSL }}$ {{ else }} {{ end }}", | |
| "type": "exit" | |
| } | |
| ], | |
| "type": "prompt" | |
| } | |
| ], | |
| "transient_prompt": { | |
| "background": "transparent", | |
| "foreground": "#FEF5ED", | |
| "template": " " | |
| }, | |
| "version": 2 | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment