Closed BerkeAlpaslan closed 2 months ago
Git, Node.Js, idirectory path etc. segments are not working
function Get-ScriptDirectory { Split-Path $MyInvocation.ScriptName } $PROMPT_CONFIG = Join-Path (Get-ScriptDirectory) 'baracuda.omp.json' oh-my-posh --init --shell pwsh --config $PROMPT_CONFIG | Invoke-Expression
Import-Module -Name Terminal-Icons
Set-PSReadLineOption -EditMode Emacs Set-PSReadLineOption -BellStyle None Set-PSReadLineOption -PredictionSource History Set-PSReadLineKeyHandler -Chord 'Ctrl+d' -Function DeleteChar
Import-Module PSFzf Set-PsFzfOption -PSReadLineChordProvider 'Ctrl+f' -PSReadLineChordReverseHistory 'Ctrl+r'
Set-Alias clear cls Set-Alias touch ni Set-Alias ifconfig ipconfig Set-Alias vim nvim Set-Alias ll ls Set-Alias g git Set-Alias grep findstr Set-Alias tig 'C:\Program Files\Git\usr\bin\tig.exe' Set-Alias less 'C:\Program Files\Git\usr\bin\less.exe'
function which ($command) { Get-Command -Name $command -ErrorAction SilentlyContinue | Select-Object -ExpandProperty Path -ErrorAction SilentlyContinue }
My "user_profile.ps1" folder like that
. $env:USERPROFILE.config\powershell\user_profile.ps1 $env:Path += ";C:\Users\berke\AppData\Local\Programs\oh-my-posh\bin"
"Microsoft.Powerhell_profile"
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
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