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() {
|
error_log() {
|
||||||
[[ -z "${_MESSAGES[error]}${_MESSAGES[warn]}${_MESSAGES[info]}" ]] && return 0
|
[[ -z "${_MESSAGES[error]}${_MESSAGES[warn]}${_MESSAGES[info]}" ]] && return 0
|
||||||
|
|
||||||
local headers=([error]="❌ Errors" [warn]="⚠️ Warnings" [info]="ℹ️ Info")
|
typeset -A headers colors
|
||||||
local colors=([error]="$RED" [warn]="$YELLOW" [info]="$CYAN")
|
headers=(
|
||||||
|
error "❌ Errors"
|
||||||
|
warn "⚠️ Warnings"
|
||||||
|
info "ℹ️ Info"
|
||||||
|
)
|
||||||
|
colors=(
|
||||||
|
error "$RED"
|
||||||
|
warn "$YELLOW"
|
||||||
|
info "$CYAN"
|
||||||
|
)
|
||||||
|
|
||||||
for type in error warn info; do
|
for type in error warn info; do
|
||||||
[[ -n "${_MESSAGES[$type]}" ]] && {
|
[[ -n "${_MESSAGES[$type]}" ]] && {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue