Fix liquidprompt preview
breaking the current prompt after `prompt -p`. Actually liquidprompt is pretty invasive in the way it is implemented, defining extra `prompt_on`, `prompt_off` and `prompt_OFF` functions to switch it after it is executed. Fixes #112, Closes #165
This commit is contained in:
parent
d97ff6bd07
commit
c8820313ef
1 changed files with 1 additions and 2 deletions
|
@ -1,13 +1,12 @@
|
||||||
prompt_liquidprompt_setup() {
|
prompt_liquidprompt_setup() {
|
||||||
autoload -Uz ex-liquidprompt
|
autoload -Uz ex-liquidprompt
|
||||||
|
|
||||||
ext-liquidprompt
|
ext-liquidprompt
|
||||||
prompt_opts=(cr subst percent)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
prompt_liquidprompt_preview() {
|
prompt_liquidprompt_preview() {
|
||||||
_lp_set_prompt
|
_lp_set_prompt
|
||||||
prompt_preview_theme liquidprompt
|
prompt_preview_theme liquidprompt
|
||||||
|
prompt_off
|
||||||
}
|
}
|
||||||
|
|
||||||
prompt_liquidprompt_setup "$@"
|
prompt_liquidprompt_setup "$@"
|
||||||
|
|
Loading…
Reference in a new issue