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,19 +44,21 @@ function prompt_sorin_pwd {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function prompt_sorin_git_info {
|
function prompt_sorin_git_info {
|
||||||
# Append Git status.
|
if (( _prompt_sorin_precmd_async_pid > 0 )); then
|
||||||
if [[ -s "$_prompt_sorin_precmd_async_data" ]]; then
|
# Append Git status.
|
||||||
alias typeset='typeset -g'
|
if [[ -s "$_prompt_sorin_precmd_async_data" ]]; then
|
||||||
source "$_prompt_sorin_precmd_async_data"
|
alias typeset='typeset -g'
|
||||||
RPROMPT+='${git_info:+${(e)git_info[status]}}'
|
source "$_prompt_sorin_precmd_async_data"
|
||||||
unalias typeset
|
RPROMPT+='${git_info:+${(e)git_info[status]}}'
|
||||||
|
unalias typeset
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Reset PID.
|
||||||
|
_prompt_sorin_precmd_async_pid=0
|
||||||
|
|
||||||
|
# Redisplay prompt.
|
||||||
|
zle && zle reset-prompt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Reset PID.
|
|
||||||
_prompt_sorin_precmd_async_pid=0
|
|
||||||
|
|
||||||
# Redisplay prompt.
|
|
||||||
zle && zle reset-prompt
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function prompt_sorin_precmd_async {
|
function prompt_sorin_precmd_async {
|
||||||
|
Loading…
Reference in New Issue
Block a user