Merge branch 'master' of git.covalent.cz:overwatch/over-prompt
This commit is contained in:
commit
5fab2d7c37
1 changed files with 2 additions and 1 deletions
|
@ -333,7 +333,8 @@ class VirtualEnvPart(Part):
|
||||||
if virtualenv:
|
if virtualenv:
|
||||||
self.fragments.append("⬢ ")
|
self.fragments.append("⬢ ")
|
||||||
self.fragments.append(style_color(COLOR_OK))
|
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())
|
self.fragments.append(style_reset())
|
||||||
|
|
||||||
class WineprefixPart(Part):
|
class WineprefixPart(Part):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue