diff --git a/.config/zsh/themes/prompt.zsh b/.config/zsh/themes/prompt.zsh index 2419cc1..424436d 100644 --- a/.config/zsh/themes/prompt.zsh +++ b/.config/zsh/themes/prompt.zsh @@ -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