So, I upgraded from 24.11.4 to 26.23.6. Ever since, it doesn't load my config and provides no error to speak of. I rechecked my .bashrc command to show a correct command and path to config file.
eval "$(oh-my-posh init bash --config /etc/nixos/assets/M365Princess.omp.json)"
I deleted ~/.cache/oh-my-posh in case there was a collision in cache objects since I recently upgraded my OS. No change.
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"palette": {
"blush": "#DA627D",
"plum": "#9A348E",
"salmon": "#FCA17D",
"sky": "#86BBD8",
"tan": "#CC3802",
"teal": "#047E84",
"teal_blue": "#33658A",
"white": "#FFFFFF"
},
"blocks": [
{
"type": "rprompt",
"alignment": "left",
"segments": [
{
"properties": {
"cache_duration": "none"
},
"leading_diamond": "\ue0b6",
"template": "{{ if .Env.PNPPSHOST }} \uf8c5 {{ .Env.PNPPSHOST }} {{ end }}",
"foreground": "p:white",
"background": "p:tan",
"type": "text",
"style": "diamond"
},
{
"properties": {
"cache_duration": "none"
},
"template": "{{ if .Env.PNPPSSITE }} \uf2dd {{ .Env.PNPPSSITE }}{{ end }}",
"foreground": "p:white",
"powerline_symbol": "\ue0b0",
"background": "p:teal",
"type": "text",
"style": "powerline"
},
{
"properties": {
"cache_duration": "none"
},
"trailing_diamond": "\ue0b4",
"template": "{{ if .Env.PNPPSSITE }} {{ end }}",
"foreground": "p:white",
"background": "p:teal",
"type": "text",
"style": "diamond"
}
]
},
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"properties": {
"cache_duration": "none"
},
"leading_diamond": "\ue0b6",
"template": "{{ .UserName }} ",
"foreground": "p:white",
"background": "p:plum",
"type": "session",
"style": "diamond"
},
{
"properties": {
"cache_duration": "none",
"home_icon": "\uf4ee",
"mapped_locations": {
"/etc/nixos/": "\uf313"
},
"style": "folder"
},
"template": " {{ .Path }} ",
"foreground": "p:white",
"powerline_symbol": "\ue0b0",
"background": "p:blush",
"type": "path",
"style": "powerline"
},
{
"properties": {
"branch_icon": "",
"cache_duration": "none",
"fetch_stash_count": true,
"fetch_status": false,
"fetch_upstream_icon": true
},
"template": " ➜ ({{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }} \ueb4b {{ .StashCount }}{{ end }}) ",
"foreground": "p:white",
"powerline_symbol": "\ue0b0",
"background": "p:salmon",
"type": "git",
"style": "powerline"
},
{
"properties": {
"cache_duration": "none"
},
"template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ",
"foreground": "p:white",
"powerline_symbol": "\ue0b0",
"background": "p:sky",
"type": "node",
"style": "powerline"
},
{
"properties": {
"cache_duration": "none",
"time_format": "15:04"
},
"trailing_diamond": "\ue0b0",
"template": " 🌸 {{ .CurrentDate | date .Format }} ",
"foreground": "p:white",
"background": "p:teal_blue",
"type": "time",
"style": "diamond"
}
]
}
],
"version": 3,
"final_space": true
}
Code of Conduct
What happened?
So, I upgraded from 24.11.4 to 26.23.6. Ever since, it doesn't load my config and provides no error to speak of. I rechecked my .bashrc command to show a correct command and path to config file.
eval "$(oh-my-posh init bash --config /etc/nixos/assets/M365Princess.omp.json)"I even ran
oh-my-posh init bash --config /etc/nixos/assets/M365Princess.omp.jsonwith no response other thanexport POSH_SESSION_ID="02f881f2-84aa-4949-8707-26b30de8cc1a";source $'/home/arkannon/.cache/oh-my-posh/init.6709406588236150689.sh'I deleted ~/.cache/oh-my-posh in case there was a collision in cache objects since I recently upgraded my OS. No change.
So to test in case there was syntax change in the config, I ran
oh-my-posh print previewandoh-my-post print preview --config /etc/nixos/assets/M365Princess.omp.json. The first one showed the elements of the default prompt, while the second one showed correct elements for the default prompt.Any guidance? Am I missing something obvious?
Theme
What OS are you seeing the problem on?
No response
Which shell are you using?
No response
Log output