From 047320a9234be4de8299ff4796e28e2363e77984 Mon Sep 17 00:00:00 2001 From: Vladislav Doster Date: Mon, 11 Apr 2022 18:27:09 -0500 Subject: [PATCH] feat: update output messaging to be more informative Signed-off-by: Vladislav Doster --- zinit-autoload.zsh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zinit-autoload.zsh b/zinit-autoload.zsh index eb2666ca7..22a00cec8 100644 --- a/zinit-autoload.zsh +++ b/zinit-autoload.zsh @@ -711,14 +711,14 @@ ZINIT[EXTENDED_GLOB]="" emulate -LR zsh setopt extendedglob typesetsilent warncreateglobal - [[ $1 = -q ]] && +zinit-message "{info2}Updating Zinit{…}{rst}" + [[ $1 = -q ]] && +zinit-message -n "{info2}[self-update]{info2}{msg2} Updating Zinit repository{msg2}" \ local nl=$'\n' escape=$'\x1b[' local current_branch=$(builtin pushd $ZINIT[BIN_DIR] > /dev/null && git branch --show-current && popd > /dev/null) local -a lines ( builtin cd -q "$ZINIT[BIN_DIR]" \ - && +zinit-message -n "{pre}[self-update]{msg2} fetching changes for {msg2}$current_branch$nl{cmd}" \ + && +zinit-message -n "{pre}[self-update]{msg2} fetching latest changes from {msg2}$current_branch$nl{cmd}" \ && command git fetch --quiet \ && lines=( ${(f)"$(command git log --color --date=short --pretty=format:'%Cgreen%cd %h %Creset%s %Cred%d%Creset || %b' ..FETCH_HEAD)"} ) if (( ${#lines} > 0 )); then @@ -743,14 +743,14 @@ ZINIT[EXTENDED_GLOB]="" } ) if [[ $1 != -q ]] { - +zinit-message "Compiling Zinit (zcompile){…}" + +zinit-message -n "{pre}[self-update]{msg2} compiling zinit (zinit){msg2}" } command rm -f $ZINIT[BIN_DIR]/*.zwc(DN) zcompile -U $ZINIT[BIN_DIR]/zinit.zsh zcompile -U $ZINIT[BIN_DIR]/zinit-{'side','install','autoload','additional'}.zsh zcompile -U $ZINIT[BIN_DIR]/share/git-process-output.zsh # Load for the current session - [[ $1 != -q ]] && +zinit-message "Reloading Zinit for the current session{…}" + [[ $1 != -q ]] && +zinit-message -n "{pre}[self-update]{msg2} Reloading Zinit for the current session{msg2}" source $ZINIT[BIN_DIR]/zinit.zsh zcompile -U $ZINIT[BIN_DIR]/zinit-{'side','install','autoload'}.zsh # Read and remember the new modification timestamps