You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the day I first installed Oh-My-Posh, I was receiving a migration warning on startup. To resolve this, I deleted the Oh-My-Posh imports from my "user_profile.ps1" file. After this change, the migration warning disappeared, and everything seemed to work fine. Later, I made additions to my own .json configuration file for "angular", and since then, issues started occurring. Currently, the notifications for "Git", "node.js" version, and, most importantly, the file path are not working. Only the features I added for the right side, like the time, are functioning correctly. I also share my own configuration file code below. Could this be due to the recent 21.28.0 update?
Theme
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"version": 2,
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "shell",
"style": "diamond",
"foreground": "#ffffff",
"background": "#0077c2",
"leading_diamond": "\u256d\u2500\ue0b6",
"template": "\udb82\ude0a"
},
{
"type": "root",
"style": "diamond",
"foreground": "#fffb38",
"background": "#ef5350",
"template": "<parentBackground>\ue0b0</> \uf0e7",
"properties": {
"root_icon": "\uf292"
}
},
{
"type": "path",
"style": "powerline",
"powerline_symbol": "\ue0b0",
"foreground": "#e4e4e4",
"background": "#444444",
"template": " {{ .Path }} ",
"properties": {
"style": "full"
}
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "\ue0b0",
"foreground": "#011627",
"background": "#fffb38",
"background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#ffeb95{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#c5e478{{ end }}",
"{{ if gt .Ahead 0 }}#c792ea{{ end }}",
"{{ if gt .Behind 0}}#c792ea{{ end }}"
],
"template": " {{ .HEAD }} {{ if .Working.Changed }}{{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}<#ef5350> \uf046 {{ .Staging.String }}</>{{ end }} ",
"properties": {
"branch_icon": "\ue725",
"fetch_status": true,
"fetch_upstream_icon": true
}
}
]
},
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"type": "node",
"style": "diamond",
"foreground": "#3c873a",
"powerline_symbol": "\ue0b0",
"background": "#303030",
"leading_diamond": "\ue0b6",
"trailing_diamond": "\ue0b4",
"template": "\ue718{{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}",
"properties": {
"fetch_package_manager": true
}
},
{
"type": "executiontime",
"style": "diamond",
"invert_powerline": true,
"foreground": "#ffffff",
"background": "#000000",
"leading_diamond": "\ue0b6",
"trailing_diamond": "",
"template": "\ueba2 {{ .FormattedMs }} "
},
{
"type": "battery",
"style": "diamond",
"foreground_templates": [
"{{ if le .Percentage 10 }}#FF0000{{ end }}",
"{{ if and (ge .Percentage 11) (le .Percentage 20) }}#FF4500{{ end }}",
"{{ if and (ge .Percentage 21) (le .Percentage 30) }}#FFA500{{ end }}",
"{{ if and (ge .Percentage 31) (le .Percentage 40) }}#FFD700{{ end }}",
"{{ if and (ge .Percentage 41) (le .Percentage 50) }}#FFFF00{{ end }}",
"{{ if and (ge .Percentage 51) (le .Percentage 60) }}#ADFF2F{{ end }}",
"{{ if and (ge .Percentage 61) (le .Percentage 70) }}#7FFF00{{ end }}",
"{{ if and (ge .Percentage 71) (le .Percentage 80) }}#32CD32{{ end }}",
"{{ if and (ge .Percentage 81) (le .Percentage 90) }}#00FF00{{ end }}",
"{{ if and (ge .Percentage 91) (le .Percentage 100) }}#008000{{ end }}"
],
"background": "#444444",
"leading_diamond": "\ue0b2",
"trailing_diamond": "",
"template": "{{ if eq \"True\" (title (default \"False\" .Env.DISABLE_SEGMENT_BATTERY)) }}{{ else }}{{ if not .Error }}{{ if eq \"Charging\" .State.String }}{{ if le .Percentage 10 }} \udb82\udc9c {{ .Percentage }}% {{ else if and (ge .Percentage 11) (le .Percentage 20) }} \udb80\udc86 {{ .Percentage }}% {{ else if and (ge .Percentage 21) (le .Percentage 30) }} \udb80\udc87 {{ .Percentage }}% {{ else if and (ge .Percentage 31) (le .Percentage 40) }} \udb80\udc88 {{ .Percentage }}% {{ else if and (ge .Percentage 41) (le .Percentage 50) }} \udb82\udc9d {{ .Percentage }}% {{ else if and (ge .Percentage 51) (le .Percentage 60) }} \udb80\udc89 {{ .Percentage }}% {{ else if and (ge .Percentage 61) (le .Percentage 70) }} \udb82\udc9e {{ .Percentage }}% {{ else if and (ge .Percentage 71) (le .Percentage 80) }} \udb80\udc8a {{ .Percentage }}% {{ else if and (ge .Percentage 81) (le .Percentage 90) }} \udb80\udc8b {{ .Percentage }}% {{ else }} \udb80\udc85 {{ .Percentage }}% {{ end }}{{ else }}{{ if le .Percentage 10 }} \udb80\udc7a {{ .Percentage }}% {{ else if and (ge .Percentage 11) (le .Percentage 20) }} \udb80\udc7b {{ .Percentage }}% {{ else if and (ge .Percentage 21) (le .Percentage 30) }} \udb80\udc7c {{ .Percentage }}% {{ else if and (ge .Percentage 31) (le .Percentage 40) }} \udb80\udc7d {{ .Percentage }}% {{ else if and (ge .Percentage 41) (le .Percentage 50) }} \udb80\udc7e {{ .Percentage }}% {{ else if and (ge .Percentage 51) (le .Percentage 60) }} \udb80\udc7f {{ .Percentage }}% {{ else if and (ge .Percentage 61) (le .Percentage 70) }} \udb80\udc80 {{ .Percentage }}% {{ else if and (ge .Percentage 71) (le .Percentage 80) }} \udb80\udc81 {{ .Percentage }}% {{ else if and (ge .Percentage 81) (le .Percentage 90) }} \udb80\udc82 {{ .Percentage }}% {{ else }} \udb80\udc79 {{ .Percentage }}% {{ end }}{{ end }}{{ else }}!{{ end }}{{ end }}"
},
{
"type": "sysinfo",
"style": "diamond",
"foreground": "#ffffff",
"background": "#516beb",
"leading_diamond": "\ue0b2",
"trailing_diamond": "",
"template": "\ue266 RAM: {{ (div ((sub .PhysicalTotalMemory .PhysicalFreeMemory)|float64) 1073741824.0) }}/{{ (div .PhysicalTotalMemory 1073741824.0)}}GB | {{ round .PhysicalPercentUsed .Precision }}% "
},
{
"type": "time",
"style": "diamond",
"invert_powerline": true,
"foreground": "#ffffff",
"background": "#40c4ff",
"leading_diamond": "\ue0b2",
"trailing_diamond": "\ue0b4",
"template": "\udb80\udcf0 {{ .CurrentDate | date .Format }} ",
"properties": {
"time_format": "Mon, 02 Jan 2006 | 15:04:05"
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "text",
"style": "plain",
"foreground": "#21c7c7",
"template": "\u2570\u2500"
},
{
"type": "exit",
"style": "plain",
"foreground": "#e0f8ff",
"foreground_templates": ["{{ if gt .Code 0 }}#ef5350{{ end }}"],
"template": "❯{{ if gt .Code 0 }}\uf00d{{ else }}\uf42e{{ end }} ",
"properties": {
"always_enabled": true
}
}
]
}
],
"osc99": true
}
When I say "oh-my-posh debug" on Angular project file, it seems every segment works correctly. But when I close debug mode, a lot of segments are not working. I think last update 21.28.0 has problem
Repository owner
locked and limited conversation to collaborators
Jul 21, 2024
Code of Conduct
What happened?
Since the day I first installed Oh-My-Posh, I was receiving a migration warning on startup. To resolve this, I deleted the Oh-My-Posh imports from my "user_profile.ps1" file. After this change, the migration warning disappeared, and everything seemed to work fine. Later, I made additions to my own .json configuration file for "angular", and since then, issues started occurring. Currently, the notifications for "Git", "node.js" version, and, most importantly, the file path are not working. Only the features I added for the right side, like the time, are functioning correctly. I also share my own configuration file code below. Could this be due to the recent 21.28.0 update?
Theme
What OS are you seeing the problem on?
Windows
Which shell are you using?
powershell
Log output
The text was updated successfully, but these errors were encountered: