oh-my-posh/themes/iterm2.omp.json

151 lines
4.4 KiB
JSON
Raw Normal View History

2021-06-07 22:39:09 -07:00
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "#003543",
2022-02-03 01:22:57 -08:00
"foreground": "#fff",
"powerline_symbol": "\ue0b0",
2021-06-07 22:39:09 -07:00
"properties": {
2022-02-03 01:22:57 -08:00
"template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}}",
"windows": "\uf179"
},
"style": "powerline",
"type": "os"
2021-06-07 22:39:09 -07:00
},
{
"background": "#003543",
2022-02-03 01:22:57 -08:00
"foreground": "#d2ff5e",
"powerline_symbol": "\ue0b0",
2021-06-07 22:39:09 -07:00
"properties": {
2022-02-03 01:22:57 -08:00
"template": "{{ .UserName }} "
},
"style": "powerline",
"type": "session"
2021-06-07 22:39:09 -07:00
},
{
"background": "#0087D8",
2022-02-03 01:22:57 -08:00
"foreground": "#003544",
"powerline_symbol": "\ue0b0",
2021-06-07 22:39:09 -07:00
"properties": {
2022-02-03 01:22:57 -08:00
"folder_separator_icon": "/",
2021-06-07 22:39:09 -07:00
"style": "full",
2022-02-03 01:22:57 -08:00
"template": " \ue5ff {{ .Path }} "
},
"style": "powerline",
"type": "path"
2021-06-07 22:39:09 -07:00
},
{
"background": "#d2ff5e",
"background_templates": [
2021-11-09 08:13:47 -08:00
"{{ if or (.Working.Changed) (.Staging.Changed) }}#ff9248{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#f26d50{{ end }}",
"{{ if gt .Ahead 0 }}#89d1dc{{ end }}",
"{{ if gt .Behind 0 }}#f17c37{{ end }}"
],
2022-02-03 01:22:57 -08:00
"foreground": "#193549",
"powerline_symbol": "\ue0b0",
2021-06-07 22:39:09 -07:00
"properties": {
"fetch_stash_count": true,
2022-02-03 01:22:57 -08:00
"fetch_status": true,
"template": " {{ .HEAD }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} "
},
"style": "powerline",
"type": "git"
2021-06-07 22:39:09 -07:00
},
{
"background": "#33DD2D",
2022-02-03 01:22:57 -08:00
"background_templates": [
"{{ if gt .Code 0 }}#f1184c{{ end }}"
],
"foreground": "#242424",
"powerline_symbol": "\ue0b0",
2021-06-07 22:39:09 -07:00
"properties": {
2022-02-03 01:22:57 -08:00
"always_enabled": true,
"template": " \ufc8d "
},
"style": "powerline",
"type": "exit"
2021-06-07 22:39:09 -07:00
}
2022-02-03 01:22:57 -08:00
],
"type": "prompt"
2021-06-07 22:39:09 -07:00
},
{
"alignment": "right",
"segments": [
{
"background": "#f36943",
"background_templates": [
"{{if eq \"Charging\" .State.String}}#33DD2D{{end}}",
"{{if eq \"Discharging\" .State.String}}#FFCD58{{end}}",
"{{if eq \"Full\" .State.String}}#0476d0{{end}}"
],
2022-02-03 01:22:57 -08:00
"foreground": "#242424",
"invert_powerline": true,
"powerline_symbol": "\ue0b2",
2021-06-07 22:39:09 -07:00
"properties": {
2022-02-03 01:22:57 -08:00
"template": " {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}\uf295 \uf583 "
},
"style": "powerline",
"type": "battery"
2021-06-07 22:39:09 -07:00
},
{
"background": "#0087D8",
2022-02-03 01:22:57 -08:00
"foreground": "#003544",
"invert_powerline": true,
"powerline_symbol": "\ue0b2",
2021-06-07 22:39:09 -07:00
"properties": {
"display_mode": "context",
2021-12-04 02:56:55 -08:00
"fetch_virtual_env": true,
2022-02-03 01:22:57 -08:00
"template": " \ue235 {{ .Venv }} "
},
"style": "powerline",
"type": "python"
2021-06-07 22:39:09 -07:00
},
{
"background": "#003543",
2022-02-03 01:22:57 -08:00
"foreground": "#fff",
"invert_powerline": true,
"powerline_symbol": "\ue0b2",
2021-06-07 22:39:09 -07:00
"properties": {
2022-02-03 01:22:57 -08:00
"template": "<#fff> \uf64f </>{{ .CurrentDate | date .Format }} "
},
"style": "powerline",
"type": "time"
2021-06-07 22:39:09 -07:00
}
2022-02-03 01:22:57 -08:00
],
"type": "prompt"
2021-06-07 22:39:09 -07:00
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "#FFD700",
"properties": {
2022-02-03 01:22:57 -08:00
"template": " \u26a1 "
},
"style": "plain",
"type": "root"
2021-06-07 22:39:09 -07:00
},
{
"foreground": "#f1184c",
"properties": {
2022-02-03 01:22:57 -08:00
"template": "🚀 "
},
"style": "plain",
"type": "text"
2021-06-07 22:39:09 -07:00
}
2022-02-03 01:22:57 -08:00
],
"type": "prompt"
2021-06-07 22:39:09 -07:00
}
2022-02-03 01:22:57 -08:00
],
"console_title": true,
"console_title_style": "template",
"console_title_template": "{{ .Shell }} in {{ .Folder }}",
"final_space": true,
"version": 1
2021-06-07 22:39:09 -07:00
}