We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e292ed commit 77cfb5dCopy full SHA for 77cfb5d
setup.py
@@ -10,7 +10,7 @@
10
11
setup(
12
name='xontrib-powerline',
13
- version='0.3.2',
+ version='0.3.3',
14
15
description='Powerline for Xonsh shell',
16
long_description=long_description,
xontrib/powerline.xsh
@@ -1,4 +1,5 @@
1
import os
2
+from os import path
3
from collections import namedtuple
4
from time import strftime
5
@@ -17,6 +18,7 @@ $PL_RSEP = ''
17
18
$PL_SEP_THIN = ''
19
20
available_sections = {}
21
+HOME = path.expanduser('~')
22
23
24
def register_sec(f):
@@ -40,8 +42,8 @@ def short_cwd():
40
42
41
43
44
def compress_home(path):
- if path.startswith($HOME):
- path = '~' + path[len($HOME):]
45
+ if path.startswith(HOME):
46
+ path = '~' + path[len(HOME):]
47
return path
48
49
0 commit comments