mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 12:48:01 +00:00
Redraw only when called from subprocess
This commit is contained in:
parent
ef634f38a4
commit
bdec6c4e20
@ -44,6 +44,7 @@ function prompt_sorin_pwd {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function prompt_sorin_git_info {
|
function prompt_sorin_git_info {
|
||||||
|
if (( _prompt_sorin_precmd_async_pid > 0 )); then
|
||||||
# Append Git status.
|
# Append Git status.
|
||||||
if [[ -s "$_prompt_sorin_precmd_async_data" ]]; then
|
if [[ -s "$_prompt_sorin_precmd_async_data" ]]; then
|
||||||
alias typeset='typeset -g'
|
alias typeset='typeset -g'
|
||||||
@ -57,6 +58,7 @@ function prompt_sorin_git_info {
|
|||||||
|
|
||||||
# Redisplay prompt.
|
# Redisplay prompt.
|
||||||
zle && zle reset-prompt
|
zle && zle reset-prompt
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function prompt_sorin_precmd_async {
|
function prompt_sorin_precmd_async {
|
||||||
|
Loading…
Reference in New Issue
Block a user