1
0
Fork 0
mirror of synced 2024-11-27 09:45:34 -05:00
zimfw/modules/prompt/functions/prompt_liquidprompt_setup
Eric Nielsen c8820313ef 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
2017-04-30 09:01:36 -07:00

12 lines
215 B
Text

prompt_liquidprompt_setup() {
autoload -Uz ex-liquidprompt
ext-liquidprompt
}
prompt_liquidprompt_preview() {
_lp_set_prompt
prompt_preview_theme liquidprompt
prompt_off
}
prompt_liquidprompt_setup "$@"