mirror of
https://github.com/powerline/powerline.git
synced 2025-07-27 07:44:36 +02:00
Make libzpython bindings accept multiple paths when using overrides
This commit is contained in:
parent
17b32b1765
commit
5c5407cffd
@ -81,12 +81,13 @@ are taken from zsh variables.
|
|||||||
but only subdictionaries for ``THEME_NAME`` key are merged with theme
|
but only subdictionaries for ``THEME_NAME`` key are merged with theme
|
||||||
configuration when theme with given name is requested.
|
configuration when theme with given name is requested.
|
||||||
|
|
||||||
``POWERLINE_CONFIG_PATH``
|
``POWERLINE_CONFIG_PATHS``
|
||||||
Sets directory where configuration should be read from. If present, no
|
Sets directories where configuration should be read from. If present, no
|
||||||
default locations are searched for configuration. No expansions are
|
default locations are searched for configuration. No expansions are
|
||||||
performed by powerline script itself, but zsh usually performs them on its
|
performed by powerline script itself, but zsh usually performs them on its
|
||||||
own if you set variable without quotes: ``POWERLINE_CONFIG_PATH=~/example``.
|
own if you set variable without quotes: ``POWERLINE_CONFIG_PATHS=( ~/example
|
||||||
Expansion depends on zsh configuration.
|
)``. You should use array parameter or the usual colon-separated
|
||||||
|
``POWERLINE_CONFIG_PATHS=$HOME/path1:$HOME/path2``.
|
||||||
|
|
||||||
Ipython overrides
|
Ipython overrides
|
||||||
=================
|
=================
|
||||||
|
@ -5,6 +5,7 @@ import zsh
|
|||||||
import atexit
|
import atexit
|
||||||
from powerline.shell import ShellPowerline
|
from powerline.shell import ShellPowerline
|
||||||
from powerline.lib import parsedotval
|
from powerline.lib import parsedotval
|
||||||
|
from powerline.lib.unicode import unicode
|
||||||
|
|
||||||
|
|
||||||
used_powerlines = []
|
used_powerlines = []
|
||||||
@ -44,9 +45,14 @@ class Args(object):
|
|||||||
@property
|
@property
|
||||||
def config_path(self):
|
def config_path(self):
|
||||||
try:
|
try:
|
||||||
return zsh.getvalue('POWERLINE_CONFIG_PATH')
|
ret = zsh.getvalue('POWERLINE_CONFIG_PATHS')
|
||||||
except IndexError:
|
except IndexError:
|
||||||
return None
|
return None
|
||||||
|
else:
|
||||||
|
if isinstance(ret, (unicode, str, bytes)):
|
||||||
|
return ret.split(type(ret)(':'))
|
||||||
|
else:
|
||||||
|
return ret
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def jobnum(self):
|
def jobnum(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user