Show Loading message in right prompt

This commit is contained in:
Jonny Barnes 2024-09-20 21:18:21 +01:00
parent 8a3cdacaaa
commit 215442575b
Signed by: jonny
SSH key fingerprint: SHA256:CTuSlns5U7qlD9jqHvtnVmfYV3Zwl2Z7WnJ4/dqOaL8

View file

@ -142,8 +142,11 @@ zstyle ':vcs_info:git*' stagedstr '+'
# but can be slow on large repos # but can be slow on large repos
zstyle ':vcs_info:*:*' check-for-changes true zstyle ':vcs_info:*:*' check-for-changes true
# Set the right prompt to the vcs_info message # First show the Loading indicator in the right prompt if shell plugins are still loading
RPROMPT='%F{8}${vcs_info_msg_0_}' RPROMPT='%F{8}$(if [[ -n $SHELL_LOADING ]]; then echo "Loading... "; fi)'
# Then we can also show the git branch
RPROMPT+='${vcs_info_msg_0_}'
# First set a dot that changes colour on success/fail or previous command # First set a dot that changes colour on success/fail or previous command
PROMPT='%(?.%F{blue}⏺.%F{red}⏺)%f ' PROMPT='%(?.%F{blue}⏺.%F{red}⏺)%f '