Merge branch 'master' of git.covalent.cz:overwatch/over-prompt

This commit is contained in:
Martinez 2016-08-25 21:13:37 +02:00
commit 5fab2d7c37

View file

@ -333,7 +333,8 @@ class VirtualEnvPart(Part):
if virtualenv:
self.fragments.append("")
self.fragments.append(style_color(COLOR_OK))
self.fragments.append(virtualenv)
parts = virtualenv.split("/")
self.fragments.append(parts[-2] if len(parts) >= 2 else virtualenv)
self.fragments.append(style_reset())
class WineprefixPart(Part):