Zsh: async_vcs_prompt -> _async_vcs_prompt

This commit is contained in:
tastytea 2022-04-21 23:05:38 +02:00
parent a2a261ddbe
commit 5e22f6cea1
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

View File

@ -33,7 +33,7 @@ zstyle ':vcs_info:*' unstagedstr "%F{${zsh_theme_colours[highlight]}}○%f
zstyle ':vcs_info:*' check-for-changes true
# Needs mafredri/zsh-async, async_init must be called before using
function async_vcs_prompt()
function _async_vcs_prompt()
{
# From https://vincent.bernat.ch/en/blog/2019-zsh-async-vcs-info
function _my_vcs_async_start()
@ -84,7 +84,7 @@ function async_vcs_prompt()
# Use asynchronous VCS prompt if zsh-async is available
if [[ -v ASYNC_VERSION ]]; then
[[ ${ASYNC_INIT_DONE} -eq 0 ]] && async_init
async_vcs_prompt
_async_vcs_prompt
else
add-zsh-hook precmd vcs_info
fi