Browse Source

Redraw only when called from subprocess

master
Sorin Ionescu 10 years ago
parent
commit
bdec6c4e20
  1. 2
      modules/prompt/functions/prompt_sorin_setup

2
modules/prompt/functions/prompt_sorin_setup

@ -44,6 +44,7 @@ function prompt_sorin_pwd { @@ -44,6 +44,7 @@ function prompt_sorin_pwd {
}
function prompt_sorin_git_info {
if (( _prompt_sorin_precmd_async_pid > 0 )); then
# Append Git status.
if [[ -s "$_prompt_sorin_precmd_async_data" ]]; then
alias typeset='typeset -g'
@ -57,6 +58,7 @@ function prompt_sorin_git_info { @@ -57,6 +58,7 @@ function prompt_sorin_git_info {
# Redisplay prompt.
zle && zle reset-prompt
fi
}
function prompt_sorin_precmd_async {

Loading…
Cancel
Save