mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-09 20:44:03 -08:00
174 lines
5.2 KiB
JSON
174 lines
5.2 KiB
JSON
{
|
|
"$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
|
|
}
|