Skip to content

Commit

Permalink
windows compatibility fiz, v0.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
santagada committed Mar 19, 2017
1 parent 5e292ed commit 77cfb5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name='xontrib-powerline',
version='0.3.2',
version='0.3.3',

description='Powerline for Xonsh shell',
long_description=long_description,
Expand Down
6 changes: 4 additions & 2 deletions xontrib/powerline.xsh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
from os import path
from collections import namedtuple
from time import strftime

Expand All @@ -17,6 +18,7 @@ $PL_RSEP = ''
$PL_SEP_THIN = ''

available_sections = {}
HOME = path.expanduser('~')


def register_sec(f):
Expand All @@ -40,8 +42,8 @@ def short_cwd():


def compress_home(path):
if path.startswith($HOME):
path = '~' + path[len($HOME):]
if path.startswith(HOME):
path = '~' + path[len(HOME):]
return path


Expand Down

0 comments on commit 77cfb5d

Please sign in to comment.