This commit is contained in:
2025-01-02 09:51:12 -05:00
parent 1c493e63af
commit 6b8f7e0b54
12 changed files with 247 additions and 311 deletions
+57 -58
View File
@@ -1,119 +1,118 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"transient_prompt": {
"template": "{{ .Shell }}> ",
"foreground": "#ffffff",
"background": "transparent"
},
"blocks": [
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "#E5C07B",
"properties": {
"cache_duration": "none",
"time_format": "15:04"
},
"style": "plain",
"template": "\uf017 {{ .CurrentDate | date .Format }}",
"type": "time"
"foreground": "#E5C07B",
"type": "time",
"style": "plain"
},
{
"type": "shell",
"style": "plain",
"foreground": "#E06C75",
"properties": {
"mapped_shell_names": {
"pwsh": "Shell",
"powershell": "Shell",
"cmd": "Cmd",
"bash": "Bash"
}
"branch_max_length": 25,
"cache_duration": "none",
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true
},
"template": " \ue795 {{ .Name }}"
},
{
"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": "#F3C267",
"type": "git",
"style": "plain",
"foreground_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#FF9248{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#ff4500{{ end }}",
"{{ if gt .Ahead 0 }}#B388FF{{ end }}",
"{{ if gt .Behind 0 }}#B388FF{{ end }}"
],
"properties": {
"branch_max_length": 25,
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true
},
"style": "plain",
"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"
"newline": true
},
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"properties": {
"cache_duration": "none"
},
"template": " x{{ reason .Code }}",
"foreground": "#b8ff75",
"type": "status",
"style": "plain",
"foreground": "#b8ff75",
"foreground_templates": ["{{ if gt .Code 0 }}#E06C75{{ end }}"],
"template": " x{{ reason .Code }}"
"foreground_templates": ["{{ if gt .Code 0 }}#E06C75{{ end }}"]
},
{
"foreground": "#E5C07B",
"foreground_templates": ["{{ if gt .Code 0 }}#E06C75{{ end }}"],
"properties": {
"style": "roundrock",
"always_enabled": true
"always_enabled": true,
"cache_duration": "none",
"style": "roundrock"
},
"style": "diamond",
"template": " {{ .FormattedMs }} ",
"type": "executiontime"
"foreground": "#E5C07B",
"type": "executiontime",
"style": "diamond",
"foreground_templates": ["{{ if gt .Code 0 }}#E06C75{{ end }}"]
}
],
"type": "prompt"
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "#61AFEF",
"properties": {
"cache_duration": "none",
"style": "full"
},
"style": "plain",
"template": "\ue5ff {{ .Path }}",
"type": "path"
"foreground": "#61AFEF",
"type": "path",
"style": "plain"
}
],
"type": "prompt"
"newline": true
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"properties": {
"cache_duration": "none"
},
"template": "!",
"foreground": "#E06C75",
"style": "plain",
"template": "\u0021",
"type": "root"
"type": "root",
"style": "plain"
},
{
"properties": {
"cache_duration": "none"
},
"template": "",
"foreground": "#E06C75",
"style": "plain",
"template": "\u276f",
"type": "text"
"type": "text",
"style": "plain"
}
],
"type": "prompt"
"newline": true
}
],
"transient_prompt": {
"background": "transparent",
"foreground": "#ffffff",
"template": "{{ .Shell }}> "
},
"final_space": true,
"version": 2
"version": 3,
"final_space": true
}