mirror of
https://github.com/powerline/powerline.git
synced 2025-07-27 07:44:36 +02:00
Add powerline-reload function for libzpython bindings
This commit is contained in:
parent
23a3dc8f3c
commit
50160e9889
@ -124,6 +124,11 @@ _powerline_setup_prompt() {
|
|||||||
zpython 'from powerline.bindings.zsh import setup as _powerline_setup'
|
zpython 'from powerline.bindings.zsh import setup as _powerline_setup'
|
||||||
zpython '_powerline_setup(globals())'
|
zpython '_powerline_setup(globals())'
|
||||||
zpython 'del _powerline_setup'
|
zpython 'del _powerline_setup'
|
||||||
|
powerline-reload() {
|
||||||
|
zpython 'from powerline.bindings.zsh import reload as _powerline_reload'
|
||||||
|
zpython '_powerline_reload()'
|
||||||
|
zpython 'del _powerline_reload'
|
||||||
|
}
|
||||||
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…
x
Reference in New Issue
Block a user