oh-my-posh: Unrecognized commands cause the theme to not work
Prerequisites
- I have read and understand the
CONTRIBUTINGguide - I looked for duplicate issues before submitting this one
Description
Unrecognized commands cause the theme to not work
Environment
- Oh my Posh version: 3.44.1
- Theme: material
- Operating System: Windows 10
- Shell: Powershell
- Terminal: Windows Terminal
Steps to Reproduce
❯❯ anvo 15:05 unknown
unknown: The term 'unknown' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Expected behavior: [What you expected to happen]
❯❯ anvo 15:05 unknown
unknown: The term 'unknown' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
❯❯ anvo 15:06 # correct
Actual behavior: [What actually happened]
❯❯ anvo 15:05 unknown
unknown: The term 'unknown' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
PS> # incorrect
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 16 (16 by maintainers)
The reason is that $global:LASTEXITCODE can be empty. This fixes it:
@JanDeDobbeleer Ok, You are right. \uD00D -> 퀍
Completely follow the manual installation docs