Add `powerline-reload-config` command
This commit is contained in:
parent
029dc92da0
commit
0898a692e9
|
@ -190,6 +190,11 @@ def reload():
|
||||||
powerline.reload()
|
powerline.reload()
|
||||||
|
|
||||||
|
|
||||||
|
def reload_config():
|
||||||
|
for powerline in used_powerlines.values():
|
||||||
|
powerline.create_renderer(load_main=True, load_colors=True, load_colorscheme=True, load_theme=True)
|
||||||
|
|
||||||
|
|
||||||
def setup(zsh_globals):
|
def setup(zsh_globals):
|
||||||
powerline = ZshPowerline()
|
powerline = ZshPowerline()
|
||||||
powerline.setup(zsh_globals)
|
powerline.setup(zsh_globals)
|
||||||
|
|
|
@ -129,6 +129,11 @@ _powerline_setup_prompt() {
|
||||||
zpython '_powerline_reload()'
|
zpython '_powerline_reload()'
|
||||||
zpython 'del _powerline_reload'
|
zpython 'del _powerline_reload'
|
||||||
}
|
}
|
||||||
|
powerline-reload-config() {
|
||||||
|
zpython 'from powerline.bindings.zsh import reload_config as _powerline_reload_config'
|
||||||
|
zpython '_powerline_reload_config()'
|
||||||
|
zpython 'del _powerline_reload_config'
|
||||||
|
}
|
||||||
else
|
else
|
||||||
if test -z "${POWERLINE_COMMAND}" ; then
|
if test -z "${POWERLINE_COMMAND}" ; then
|
||||||
POWERLINE_COMMAND="$($POWERLINE_CONFIG shell command)"
|
POWERLINE_COMMAND="$($POWERLINE_CONFIG shell command)"
|
||||||
|
|
Loading…
Reference in New Issue