JanDeDobbeleer / oh-my-posh2

A prompt theming engine for Powershell
MIT License
5.18k stars 281 forks source link

Fix the tab title #265

Closed cccc7777 closed 4 years ago

cccc7777 commented 4 years ago

The (Get-ChildItem | Select-Object -First 1).Parent.FullName will return null when current directory has not subdirectory. And, $folderSplit -gt 3 will always be true if the $folderSplit is not null. It makes the title looks like "C:...\C:\somefolder" if has two folder levels.

swlasse commented 4 years ago

Just updated to 2.0.443 and it works great - thanks for merging 👍

rbleattler commented 4 years ago

This has been driving me BONKERS for a while now, but wasn't important enough to play with. spent a few minutes today tinkering before looking in issues here. Thank you for this fix! 🔥