From 1d5104cd42c4a577c1c601bb31769a3e100eeabb Mon Sep 17 00:00:00 2001 From: piecka Date: Wed, 18 Dec 2024 15:07:02 +0100 Subject: [PATCH] some changes --- .zshrc | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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]}" ]] && {