This is not a question about oh-my-posh but about Get-ChildItem . You can find a guide on how to change that behaviour here.
Get-ChildItem