Skip to content

Commit 7352acd

Browse files
authored
Merge pull request #20 from vaaaaanquish/xonsh-0925
$PTK_STYLE_OVERRIDES is deprecated
2 parents 56fbb1a + ba69f9c commit 7352acd

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,3 +144,8 @@ xontrib load powerline2
144144

145145
- `laerus/cookiecutter-xontrib`: https://github.com/laerus/cookiecutter-xontrib
146146
- `santagada/xontrib-powerline`: https://github.com/santagada/xontrib-powerline
147+
148+
# Similer Projects
149+
150+
- `jnoortheen/xontrib-powerline3`: https://github.com/jnoortheen/xontrib-powerline3
151+
- That is also compatible with `ASYNC_PROMPT`!

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
setup(
1111
name='xontrib-powerline2',
12-
version='1.3.0',
12+
version='1.4.0',
1313
description='Powerline for Xonsh shell',
1414
long_description=open('README.md').read(),
1515
long_description_content_type="text/markdown",

xontrib/powerline2.xsh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,12 @@ $PL_DEFAULT_COLORS = {
4141
}
4242

4343
if ptk2:
44-
$PTK_STYLE_OVERRIDES['bottom-toolbar'] = 'noreverse'
44+
# $PTK_STYLE_OVERRIDES is deprecated
45+
# https://github.com/vaaaaanquish/xontrib-powerline2/issues/19
46+
if version.parse(xonsh.__version__) < version.parse("0.9.24"):
47+
$PTK_STYLE_OVERRIDES['bottom-toolbar'] = 'noreverse'
48+
else:
49+
$XONSH_STYLE_OVERRIDES['bottom-toolbar'] = 'noreverse'
4550

4651
modes = {
4752
'powerline': '\ue0b0\ue0b1\ue0b2\ue0b3',

0 commit comments

Comments
 (0)