show only one dirname of virtualenv
This commit is contained in:
parent
de6dbf81ce
commit
4dfd350967
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