Skip to content

Commit

Permalink
Shell: prettify log functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ken-matsui committed Nov 18, 2024
1 parent 776eee3 commit 7bf9423
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .config/shell/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ command_exists() {
}

info() {
printf '\033[0;34m[INFO]: %s\033[0m\n' "$*"
printf '\033[0;1;34minfo\033[0m: %s\n' "$*" >&2
}
warn() {
printf '\033[0;33m[WARNING]: %s\033[0m\n' "$*"
printf '\033[0;1;33mwarning\033[0m: %s\n' "$*" >&2
}
err() {
printf '\033[0;31m[ERROR]: %s\033[0m\n' "$*"
printf '\033[0;1;31merror\033[0m: %s\n' "$*" >&2
}

calc() {
Expand Down

0 comments on commit 7bf9423

Please sign in to comment.