Improve a package-installation message.

This commit is contained in:
Sebastian Gniazdowski 2020-07-15 13:06:10 +02:00
parent ad0928b3d5
commit 404ebdee88

View file

@ -188,7 +188,8 @@ builtin source "${ZINIT[BIN_DIR]}/zinit-side.zsh" || { builtin print -P "${ZINIT
local sep="$ZINIT[col-rst],$ZINIT[col-meta2] "
+zinit-message "Found the profile \`{meta2}$profile{rst}'. Other available" \
"profiles are: {meta}${(pj:$sep:)${profiles[@]:#$profile}}{rst}."
"profiles are:${${${(M)profile:#default}:+"{meta2}"}:-"{meta}"}" \
"${(pj:$sep:)${profiles[@]:#$profile}}{rst}."
if [[ $profile != *bgn* && -n ${(M)profiles[@]:#*bgn*} ]] {
+zinit-message "{note}Note:{rst} The \`{meta2}bgn{glob}*{rst}' profiles are" \
"recommended (they expose the binaries without extending {var}\$PATH{rst})."