Can not recognize the oh-my-posh configured in profile of powershell when open terminal via the start menu #20184

Open
opened 2026-01-31 07:06:00 +00:00 by claunia · 0 comments
Owner

Originally created by @chucklu on GitHub (Jul 4, 2023).

Windows Terminal version

1.17.11461.0

Windows build number

10.0.19045.0

Other Software

oh-my-posh 17.6.0
configured the prompt as https://ohmyposh.dev/docs/installation/prompt

oh-my-posh init pwsh | Invoke-Expression

Steps to reproduce

1.configure the oh-my-posh in profile of powershell
2.search terminal in menu, find the windows terminal and choose powershell
image

Expected Behavior

should recognize the oh-my-posh correctly as I have configured it in PATH environment variable

Actual Behavior

got this The term 'oh-my-posh' is not recognized as a name of a cmdlet
image

However if I open the windows terminal via the context menu by right click inside the same folder, it works fine, it recognize the og-my-posh correctly.

Originally created by @chucklu on GitHub (Jul 4, 2023). ### Windows Terminal version 1.17.11461.0 ### Windows build number 10.0.19045.0 ### Other Software oh-my-posh 17.6.0 configured the prompt as https://ohmyposh.dev/docs/installation/prompt > oh-my-posh init pwsh | Invoke-Expression ### Steps to reproduce 1.configure the oh-my-posh in profile of powershell 2.search terminal in menu, find the windows terminal and choose powershell ![image](https://github.com/microsoft/terminal/assets/3004057/7a4d168e-c863-4a34-9111-db4946a0f40b) ### Expected Behavior should recognize the oh-my-posh correctly as I have configured it in PATH environment variable ### Actual Behavior got this `The term 'oh-my-posh' is not recognized as a name of a cmdlet` ![image](https://github.com/microsoft/terminal/assets/3004057/cd207f82-e514-46de-b403-b504190c8471) However if I open the windows terminal via the context menu by right click inside the same folder, it works fine, it recognize the og-my-posh correctly.
claunia added the Needs-TriageIssue-Bug labels 2026-01-31 07:06:01 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#20184