Zsh: async_vcs_prompt -> _async_vcs_prompt
This commit is contained in:
parent
a2a261ddbe
commit
5e22f6cea1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user