diff --git a/.zshrc b/.zshrc index 9332b3e..fb5beaa 100644 --- a/.zshrc +++ b/.zshrc @@ -38,8 +38,17 @@ echo_info() { error_log() { [[ -z "${_MESSAGES[error]}${_MESSAGES[warn]}${_MESSAGES[info]}" ]] && return 0 - local headers=([error]="❌ Errors" [warn]="⚠️ Warnings" [info]="ℹ️ Info") - local colors=([error]="$RED" [warn]="$YELLOW" [info]="$CYAN") + typeset -A headers colors + headers=( + error "❌ Errors" + warn "⚠️ Warnings" + info "ℹ️ Info" + ) + colors=( + error "$RED" + warn "$YELLOW" + info "$CYAN" + ) for type in error warn info; do [[ -n "${_MESSAGES[$type]}" ]] && {