some changes
This commit is contained in:
parent
c39acf18e8
commit
1d5104cd42
1 changed files with 11 additions and 2 deletions
13
.zshrc
13
.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]}" ]] && {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue