Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Commit

Permalink
fix on osx, make blinking configureable
Browse files Browse the repository at this point in the history
  • Loading branch information
Tritlo authored and ayyess committed May 16, 2016
1 parent 3aca1d5 commit 73aa857
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions powerlevel9k.zsh-theme
Expand Up @@ -979,14 +979,19 @@ build_right_prompt() {
fi

index=$((index + 1))
kill -s USR1 $$
if [[ "$POWERLEVEL9K_RPROMPT_RENDER_ASAP" == true ]]; then
kill -s USR1 $$
fi
done
if [[ "$POWERLEVEL9K_RPROMPT_RENDER_ASAP" != true ]]; then
kill -s USR1 $$
fi
}

if [[ "$POWERLEVEL9K_DISABLE_RPROMPT" != true ]]; then
socket=$(mktemp)
async() {
: > $socket #reset file
: >! $socket #reset file
build_right_prompt
}
fi
Expand Down Expand Up @@ -1025,8 +1030,8 @@ $(print_icon 'MULTILINE_SECOND_PROMPT_PREFIX')"
}

tidy() {
rm $socket
socket=""
rm -f $socket
unset $socket
if [ -n "$ASYNC_PROC" ]; then
kill -TERM $ASYNC_PROC >/dev/null 2>&1
fi
Expand Down

0 comments on commit 73aa857

Please sign in to comment.