Oh-my-posh dont work in PS 5.1 and PS 7.3.3 simultaneously #3712
Answered
by
JanDeDobbeleer
ikocs
asked this question in
Troubleshoot
|
I want to use oh-my-posh on PowerShell 7.3.3. In PS 5.1 all work greate, but in PS 7.3.3 I get with string . $PROFILE
(@(& '~/AppData/Local/Programs/oh-my-posh/bin/oh-my-posh.exe' init pwsh --config='~\AppData\Local\oh-my-posh\config.omp.json' --print) -join "`n") | Invoke-Expressionor: oh-my-posh init pwsh --config 'https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/atomic.omp.json'
> (@(& '~/AppData/Local/Programs/oh-my-posh/bin/oh-my-posh.exe' init pwsh --config='~\AppData\Local\oh-my-posh\config.omp.json' --print) -join "`n") | Invoke-ExpressionI'm new, don't be too hard on me) |
Answered by
JanDeDobbeleer
Apr 13, 2023
Replies: 1 comment 1 reply
|
The initialization is the same for both, all you need is |
1 reply
Answer selected by
ikocs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The initialization is the same for both, all you need is
oh-my-posh init pwsh | Invoke-Expressionin both shells (and yes, you can specify the config flag like you did). Do know they both have their own PROFILE. Adding it to 1 doesn't make it work on the other, you need to adjust both.