From fdf41755e0cbf13b892a3fe8820e5d5d680014e0 Mon Sep 17 00:00:00 2001 From: Guilherme Elias Date: Sun, 18 Sep 2022 23:05:14 -0300 Subject: [PATCH] feat(theme): add illusi0n theme --- themes/illusi0n.omp.json | 83 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 themes/illusi0n.omp.json diff --git a/themes/illusi0n.omp.json b/themes/illusi0n.omp.json new file mode 100644 index 00000000..545fd7dc --- /dev/null +++ b/themes/illusi0n.omp.json @@ -0,0 +1,83 @@ +{ + "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", + "blocks": [ + { + "segments": [ + { + "foreground": "#ff8800", + "style": "diamond", + "template": "{{ round .PhysicalPercentUsed .Precision }}% ", + "type": "sysinfo" + }, + { + "foreground": "#ff8800", + "style": "diamond", + "template": "{{ (div ((sub .PhysicalTotalMemory .PhysicalFreeMemory)|float64) 1000000000.0) }}/{{ (div .PhysicalTotalMemory 1000000000.0) }}GB ", + "type": "sysinfo" + } + ], + "type": "rprompt" + }, + { + "alignment": "left", + "segments": [ + { + "foreground": "#ff8800", + "properties": { + "macos": "mac" + }, + "style": "plain", + "template": "{{ if .WSL }}WSL at {{ end }}{{.Icon}} ", + "type": "os" + }, + { + "foreground": "#ff8800", + "style": "plain", + "template": "$", + "type": "text" + }, + { + "foreground": "#ff8800", + "style": "plain", + "template": "{{ .UserName }}:", + "type": "session" + }, + { + "foreground": "#62c0ff", + "properties": { + "folder_separator_icon": "/", + "style": "full" + }, + "style": "plain", + "type": "path" + }, + { + "foreground": "#62c0ff", + "foreground_templates": [ + "{{ if or (.Working.Changed) (.Staging.Changed) }}#6287ff{{ end }}", + "{{ if and (gt .Ahead 0) (gt .Behind 0) }}#7f62ff{{ end }}", + "{{ if gt .Ahead 0 }}#9962ff{{ end }}", + "{{ if gt .Behind 0 }}#c062ff{{ end }}" + ], + "properties": { + "branch_max_length": 25, + "fetch_stash_count": true, + "fetch_status": true, + "fetch_upstream_icon": true + }, + "style": "plain", + "template": "<#ff8800>on {{.UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", + "type": "git" + }, + { + "foreground": "#ff8800", + "style": "plain", + "template": "\u276f ", + "type": "text" + } + ], + "type": "prompt" + } + ], + "version": 2 +}