pwsh-conf/theme.omp.json

164 lines
4.7 KiB
JSON
Raw Normal View History

2022-08-16 06:43:25 +00:00
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"foreground": "#ffee58",
"style": "plain",
"template": " \uf0e7 ",
"type": "root"
},
{
"foreground": "#06884b",
2023-07-03 14:44:21 +00:00
"foreground_templates": ["{{ if gt .Code 0 }}#e61010{{ end }}"],
2022-08-16 06:43:25 +00:00
"properties": {
"always_enabled": true
},
"style": "powerline",
"template": " {{ if gt .Code 0 }}\u2717{{ else }}\u2714{{ end }} ",
"type": "exit"
},
{
"foreground": "#ffffff",
"properties": {
"display_host": false
},
"style": "plain",
"template": " {{ if .SSHSession }}\uf817 {{ end }}{{ .UserName }}",
"type": "session"
}
],
"type": "prompt"
},
{
"alignment": "left",
"segments": [
{
"foreground": "#fff000",
"properties": {
"prefix": " \ufcb5 ",
"var_name": "__SHELL_INFORMATION_POSH_258__"
},
"style": "powerline",
"type": "envvar"
},
{
"foreground": "#b600ff",
"style": "powerline",
"template": " \ufcd1 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
"type": "go"
},
{
"foreground": "#b600ff",
"style": "powerline",
"template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ",
"type": "node"
},
{
"background": "#b600ff",
"foreground": "#ffffff",
"powerline_symbol": "\ue0b0",
"properties": {
"display_mode": "context",
"home_enabled": true
},
"style": "powerline",
"template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ",
"type": "python"
}
],
"type": "prompt"
},
{
"alignment": "left",
"segments": [
{
"foreground": "#8e24aa",
"style": "plain",
"template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ",
"type": "os"
},
{
"background": "#0037da",
"foreground": "#ffffff",
"powerline_symbol": "\ue0b0",
"properties": {
"folder_separator_icon": " \ue0b1 ",
"home_icon": "\uf7db",
"style": "letter"
},
"style": "powerline",
"template": " {{ .Path }} ",
"type": "path"
},
{
2023-07-03 14:44:21 +00:00
"type": "git",
2022-08-16 06:43:25 +00:00
"style": "powerline",
2023-07-03 14:44:21 +00:00
"powerline_symbol": "",
"foreground": "#193549",
"background": "#ffeb3b",
"background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#FFEB3B{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#FFCC80{{ end }}",
"{{ if gt .Ahead 0 }}#B388FF{{ end }}",
"{{ if gt .Behind 0 }}#B388FB{{ end }}"
],
"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 }}",
"properties": {
"fetch_status": true,
"fetch_stash_count": true,
"fetch_upstream_icon": true,
"untracked_modes": {
"/Users/user/Projects/oh-my-posh/": "no"
}
}
2022-08-16 06:43:25 +00:00
}
],
"type": "prompt"
},
{
"alignment": "right",
"segments": [
{
"foreground": "#8454bb",
"powerline_symbol": "\ue0b0",
"properties": {
"style": "austin",
"threshold": 500
},
"style": "plain",
"template": " <#fefefe>\ufbab</> {{ .FormattedMs }} ",
"type": "executiontime"
},
{
"foreground": "#007ACC",
"properties": {
"time_format": "[15:04:05]"
},
"style": "plain",
"template": " {{ .CurrentDate | date .Format }} ",
"type": "time"
}
],
"type": "rprompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "#0037da",
"style": "powerline",
"template": " \u276f ",
"type": "text"
}
],
"type": "prompt"
}
],
"final_space": true,
"version": 2
}