Compare commits

...

2 Commits

Author SHA1 Message Date
Brennen Raimer
88a04522d1 add segment to indicate current shell type 2024-11-14 23:46:32 -05:00
Brennen Raimer
1b4cdc89c1 No clue. just opened the config on linux and there were changes 2024-11-13 23:23:39 -05:00

View File

@@ -1,22 +1,25 @@
{ {
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"console_title_template": "{{ .Shell }} in {{ .Folder }}",
"blocks": [ "blocks": [
{ {
"type": "prompt",
"alignment": "left", "alignment": "left",
"segments": [ "segments": [
{ {
"background": "#d3d7cf", "properties": {
"foreground": "#000000", "cache_duration": "none"
},
"leading_diamond": "\u256d\u2500\ue0b2", "leading_diamond": "\u256d\u2500\ue0b2",
"style": "diamond",
"template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ", "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ",
"type": "os" "foreground": "#000000",
"background": "#d3d7cf",
"type": "os",
"style": "diamond"
}, },
{ {
"background": "#3465a4",
"foreground": "#e4e4e4",
"powerline_symbol": "\ue0b0",
"properties": { "properties": {
"cache_duration": "none",
"folder_icon": "\ue5ff", "folder_icon": "\ue5ff",
"folder_separator_icon": "\ue0b9", "folder_separator_icon": "\ue0b9",
"home_icon": "\ueb06", "home_icon": "\ueb06",
@@ -27,201 +30,226 @@
"mixed_threshold": 8, "mixed_threshold": 8,
"style": "mixed" "style": "mixed"
}, },
"style": "powerline",
"template": " {{ path .Path .Location }} ", "template": " {{ path .Path .Location }} ",
"type": "path" "foreground": "#e4e4e4",
"powerline_symbol": "\ue0b0",
"background": "#3465a4",
"type": "path",
"style": "powerline"
}, },
{ {
"properties": {
"branch_icon": "\uf126 ",
"cache_duration": "none",
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true
},
"template": " {{ .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 }} \ueb4b {{ .StashCount }}{{ end }} ",
"foreground": "#000000",
"powerline_symbol": "\ue0b0",
"background": "#4e9a06", "background": "#4e9a06",
"type": "git",
"style": "powerline",
"background_templates": [ "background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#c4a000{{ end }}", "{{ if or (.Working.Changed) (.Staging.Changed) }}#c4a000{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#f26d50{{ end }}", "{{ if and (gt .Ahead 0) (gt .Behind 0) }}#f26d50{{ end }}",
"{{ if gt .Ahead 0 }}#89d1dc{{ end }}", "{{ if gt .Ahead 0 }}#89d1dc{{ end }}",
"{{ if gt .Behind 0 }}#4e9a06{{ end }}" "{{ if gt .Behind 0 }}#4e9a06{{ end }}"
], ]
"foreground": "#000000",
"powerline_symbol": "\ue0b0",
"properties": {
"branch_icon": "\uf126 ",
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true
},
"style": "powerline",
"template": " {{ .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 }} \ueb4b {{ .StashCount }}{{ end }} ",
"type": "git"
} }
], ]
"type": "prompt"
}, },
{ {
"type": "prompt",
"alignment": "right", "alignment": "right",
"segments": [ "segments": [
{ {
"background": "#689f63",
"foreground": "#ffffff",
"invert_powerline": true,
"powerline_symbol": "\ue0b2",
"properties": { "properties": {
"cache_duration": "none",
"fetch_version": true "fetch_version": true
}, },
"style": "powerline",
"template": " {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} \ue718 ", "template": " {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} \ue718 ",
"type": "node"
},
{
"background": "#00acd7",
"foreground": "#111111",
"invert_powerline": true,
"powerline_symbol": "\ue0b2",
"properties": {
"fetch_version": true
},
"style": "powerline",
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} \ue627 ",
"type": "go"
},
{
"background": "#4063D8",
"foreground": "#111111",
"invert_powerline": true,
"powerline_symbol": "\ue0b2",
"properties": {
"fetch_version": true
},
"style": "powerline",
"template": " \ue624 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ",
"type": "julia"
},
{
"background": "#FFDE57",
"foreground": "#111111",
"invert_powerline": true,
"powerline_symbol": "\ue0b2",
"properties": {
"display_mode": "context",
"home_enabled": true,
"fetch_virtual_env": true
},
"style": "powerline",
"template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ",
"type": "python"
},
{
"background": "#AE1401",
"foreground": "#ffffff", "foreground": "#ffffff",
"invert_powerline": true,
"powerline_symbol": "\ue0b2", "powerline_symbol": "\ue0b2",
"background": "#689f63",
"type": "node",
"style": "powerline",
"invert_powerline": true
},
{
"properties": { "properties": {
"cache_duration": "none",
"fetch_version": true
},
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} \ue627 ",
"foreground": "#111111",
"powerline_symbol": "\ue0b2",
"background": "#00acd7",
"type": "go",
"style": "powerline",
"invert_powerline": true
},
{
"properties": {
"cache_duration": "none",
"fetch_version": true
},
"template": " \ue624 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ",
"foreground": "#111111",
"powerline_symbol": "\ue0b2",
"background": "#4063D8",
"type": "julia",
"style": "powerline",
"invert_powerline": true
},
{
"properties": {
"cache_duration": "none",
"display_mode": "context",
"fetch_virtual_env": true,
"home_enabled": true
},
"template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ",
"foreground": "#111111",
"powerline_symbol": "\ue0b2",
"background": "#FFDE57",
"type": "python",
"style": "powerline",
"invert_powerline": true
},
{
"properties": {
"cache_duration": "none",
"display_mode": "files", "display_mode": "files",
"fetch_version": true "fetch_version": true
}, },
"style": "powerline",
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} \ue791 ", "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} \ue791 ",
"type": "ruby" "foreground": "#ffffff",
"powerline_symbol": "\ue0b2",
"background": "#AE1401",
"type": "ruby",
"style": "powerline",
"invert_powerline": true
}, },
{ {
"background": "#FEAC19",
"foreground": "#ffffff",
"invert_powerline": true,
"powerline_symbol": "\ue0b2",
"properties": { "properties": {
"cache_duration": "none",
"display_mode": "files", "display_mode": "files",
"fetch_version": false "fetch_version": false
}, },
"style": "powerline",
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} \uf0e7", "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} \uf0e7",
"type": "azfunc" "foreground": "#ffffff",
"powerline_symbol": "\ue0b2",
"background": "#FEAC19",
"type": "azfunc",
"style": "powerline",
"invert_powerline": true
}, },
{ {
"properties": {
"cache_duration": "none",
"display_default": false
},
"template": " {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} \ue7ad ",
"foreground": "#ffffff",
"powerline_symbol": "\ue0b2",
"type": "aws",
"style": "powerline",
"background_templates": [ "background_templates": [
"{{if contains \"default\" .Profile}}#FFA400{{end}}", "{{if contains \"default\" .Profile}}#FFA400{{end}}",
"{{if contains \"jan\" .Profile}}#f1184c{{end}}" "{{if contains \"jan\" .Profile}}#f1184c{{end}}"
], ],
"foreground": "#ffffff", "invert_powerline": true
"invert_powerline": true, },
"powerline_symbol": "\ue0b2", {
"properties": { "properties": {
"display_default": false "cache_duration": "none"
}, },
"style": "powerline",
"template": " {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} \ue7ad ",
"type": "aws"
},
{
"background": "#ffff66",
"foreground": "#111111",
"invert_powerline": true,
"powerline_symbol": "\ue0b2",
"style": "powerline",
"template": " \uf0ad ", "template": " \uf0ad ",
"type": "root" "foreground": "#111111",
},
{
"background": "#c4a000",
"foreground": "#000000",
"invert_powerline": true,
"powerline_symbol": "\ue0b2", "powerline_symbol": "\ue0b2",
"background": "#ffff66",
"type": "root",
"style": "powerline", "style": "powerline",
"template": " {{ .FormattedMs }} \uf252 ", "invert_powerline": true
"type": "executiontime"
}, },
{ {
"properties": {
"cache_duration": "none"
},
"template": " {{ .FormattedMs }} \uf252 ",
"foreground": "#000000",
"powerline_symbol": "\ue0b2",
"background": "#c4a000",
"type": "executiontime",
"style": "powerline",
"invert_powerline": true
},
{
"type": "shell",
"style": "powerline",
"powerline_symbol": "\ue0b2",
"invert_powerline": true,
"foreground": "#ffffff",
"background": "#0077c2",
"properties": {
"mapped_shell_names": {
"pwsh": "\udb82\ude0a pwsh",
"bash": "\uebca bash",
"xonsh": "\uea85 xonsh",
"fish": "\uee41 fish"
}
}
},
{
"properties": {
"always_enabled": true,
"cache_duration": "none"
},
"template": " {{ if gt .Code 0 }}{{ reason .Code }}{{ else }}\uf42e{{ end }} ",
"foreground": "#d3d7cf",
"background": "#000000", "background": "#000000",
"type": "status",
"style": "diamond",
"background_templates": [ "background_templates": [
"{{ if gt .Code 0 }}#cc2222{{ end }}" "{{ if gt .Code 0 }}#cc2222{{ end }}"
], ],
"foreground": "#d3d7cf", "invert_powerline": true
"invert_powerline": true,
"powerline_symbol": "\ue0b2",
"properties": {
"always_enabled": true
},
"style": "powerline",
"template": " {{ if gt .Code 0 }}{{ reason .Code }}{{ else }}\uf42e{{ end }} ",
"type": "status"
},
{
"background": "#d3d7cf",
"foreground": "#000000",
"invert_powerline": true,
"style": "diamond",
"properties": {
"time_format": "3:04PM"
},
"template": " {{ .CurrentDate | date .Format }} \uf017 ",
"trailing_diamond": "\ue0b0\u2500\u256e",
"type": "time"
} }
], ]
"type": "prompt"
}, },
{ {
"type": "prompt",
"alignment": "left", "alignment": "left",
"newline": true,
"segments": [ "segments": [
{ {
"foreground": "#d3d7cf", "properties": {
"style": "plain", "cache_duration": "none"
},
"template": "\u2570\u2500", "template": "\u2570\u2500",
"type": "text" "foreground": "#d3d7cf",
"type": "text",
"style": "plain"
} }
], ],
"type": "prompt" "newline": true
}, },
{ {
"type": "rprompt",
"segments": [ "segments": [
{ {
"foreground": "#d3d7cf", "properties": {
"style": "plain", "cache_duration": "none"
},
"template": "\u2500\u256f", "template": "\u2500\u256f",
"type": "text" "foreground": "#d3d7cf",
"type": "text",
"style": "plain"
} }
], ]
"type": "rprompt"
} }
], ],
"console_title_template": "{{ .Shell }} in {{ .Folder }}", "version": 3,
"final_space": true, "final_space": true
"version": 2
} }