mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-06-05 05:03:16 +02:00
[plugins/async-prompt] Add decorator for stale RPROMPT
Add ZSH_THEME_ASYNC_PROMPT_OLD_PREFIX and ZSH_THEME_ASYNC_PROMPT_OLD_SUFFIX for themes to use. Signed-off-by: Olivier Mehani <olivier.mehani@learnosity.com>
This commit is contained in:
parent
0fec78ce1f
commit
60eb78630d
1 changed files with 1 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ function precmd() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# do not clear RPROMPT, let it persist
|
# do not clear RPROMPT, let it persist
|
||||||
|
RPROMPT="${ZSH_THEME_ASYNC_PROMPT_OLD_PREFIX}${RPROMPT}${ZSH_THEME_ASYNC_PROMPT_OLD_SUFFIX}"
|
||||||
|
|
||||||
# kill child if necessary
|
# kill child if necessary
|
||||||
if [[ "${ASYNC_PROC}" != 0 ]]; then
|
if [[ "${ASYNC_PROC}" != 0 ]]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue