From 89619bb2a27d404a21ceb39e389db2ab98367612 Mon Sep 17 00:00:00 2001 From: lydia7635 Date: Wed, 2 Feb 2022 22:46:50 +0800 Subject: [PATCH] theme: add velvet --- themes/velvet.omp.json | 173 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 173 insertions(+) create mode 100644 themes/velvet.omp.json diff --git a/themes/velvet.omp.json b/themes/velvet.omp.json new file mode 100644 index 00000000..ed660fe2 --- /dev/null +++ b/themes/velvet.omp.json @@ -0,0 +1,173 @@ +{ + "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", + "blocks": [ + { + "alignment": "left", + "segments": [ + { + "background": "#0E050F", + "foreground": "#EFDCF9", + "properties": { + "arch": "\uf303", + "debian": "\uf306", + "fedora": "\uf30a", + "linux": "\uf17c", + "macos": "\uf179", + "manjaro": "\uf312", + "opensuse": "\uf314", + "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ", + "ubuntu": "\uf31b", + "windows": "\uf17a" + }, + "style": "diamond", + "type": "os" + }, + { + "background": "#170B3B", + "foreground": "#EFDCF9", + "powerline_symbol": "\ue0b4", + "properties": { + "folder_icon": "...", + "folder_separator_icon": "/", + "home_icon": "~", + "max_depth": 3, + "style": "agnoster_short", + "template": " {{ .Path }} " + }, + "style": "powerline", + "type": "path" + }, + { + "background": "#341948", + "foreground": "#EFDCF9", + "powerline_symbol": "\ue0b4", + "properties": { + "branch_max_length": 25, + "fetch_stash_count": true, + "fetch_status": true, + "fetch_upstream_icon": true, + "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ 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 }} " + }, + "style": "powerline", + "type": "git" + }, + { + "background": "#4c1f5e", + "foreground": "#EFDCF9", + "powerline_symbol": "\ue0b4", + "properties": { + "always_enabled": true, + "template": " {{ .FormattedMs }} " + }, + "style": "powerline", + "type": "executiontime" + }, + { + "background": "#69307A", + "foreground": "#EFDCF9", + "foreground_templates": [ + "{{ if gt .Code 0 }}#FF3C3C{{ end }}" + ], + "properties": { + "always_enabled": true, + "template": " \uf7d4{{ if gt .Code 0 }} {{.Code}}{{ end }} " + }, + "style": "diamond", + "trailing_diamond": "\ue0b4", + "type": "exit" + } + ], + "type": "prompt" + }, + { + "alignment": "right", + "segments": [ + { + "background": "#4c1f5e", + "foreground": "#E4F34A", + "leading_diamond": " \ue0b6", + "properties": { + "fetch_version": false, + "template": "\ue235{{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}" + }, + "style": "diamond", + "trailing_diamond": "\ue0b4", + "type": "python" + }, + { + "background": "#4c1f5e", + "foreground": "#7FD5EA", + "leading_diamond": " \ue0b6", + "properties": { + "fetch_version": false, + "template": "\ufcd1{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" + }, + "style": "diamond", + "trailing_diamond": "\ue0b4", + "type": "go" + }, + { + "background": "#4c1f5e", + "foreground": "#42E66C", + "leading_diamond": " \ue0b6", + "properties": { + "fetch_version": false, + "template": "\ue718{{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}" + }, + "style": "diamond", + "trailing_diamond": "\ue0b4", + "type": "node" + }, + { + "background": "#4c1f5e", + "foreground": "#E64747", + "leading_diamond": " \ue0b6", + "properties": { + "fetch_version": false, + "template": "\ue791{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" + }, + "style": "diamond", + "trailing_diamond": "\ue0b4", + "type": "ruby" + }, + { + "background": "#4c1f5e", + "foreground": "#E64747", + "leading_diamond": " \ue0b6", + "properties": { + "fetch_version": false, + "template": "\ue738{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" + }, + "style": "diamond", + "trailing_diamond": "\ue0b4", + "type": "java" + } + ], + "type": "rprompt" + }, + { + "alignment": "left", + "newline": true, + "segments": [ + { + "background": "#4c1f5e", + "foreground": "#EFDCF9", + "properties": { + "template": " {{ .CurrentDate | date .Format }} ", + "time_format": "15:04:05" + }, + "style": "diamond", + "trailing_diamond": "\ue0b4", + "type": "time" + } + ], + "type": "prompt" + } + ], + "console_title": true, + "console_title_style": "template", + "console_title_template": "{{ .Shell }} - {{ .Folder }}", + "final_space": true, + "osc99": true, + "version": 1 +}