mirror of
https://github.com/tofuutils/pre-commit-opentofu.git
synced 2025-10-15 17:38:54 +02:00
Make text colour work in MacOS zsh (#450)
This commit is contained in:
parent
1d54ea2b99
commit
85e75dbab3
1 changed files with 4 additions and 4 deletions
|
|
@ -256,13 +256,13 @@ function common::per_dir_hook {
|
|||
#######################################################################
|
||||
function common::colorify {
|
||||
# shellcheck disable=SC2034
|
||||
local -r red="\e[0m\e[31m"
|
||||
local -r red="\x1b[0m\x1b[31m"
|
||||
# shellcheck disable=SC2034
|
||||
local -r green="\e[0m\e[32m"
|
||||
local -r green="\x1b[0m\x1b[32m"
|
||||
# shellcheck disable=SC2034
|
||||
local -r yellow="\e[0m\e[33m"
|
||||
local -r yellow="\x1b[0m\x1b[33m"
|
||||
# Color reset
|
||||
local -r RESET="\e[0m"
|
||||
local -r RESET="\x1b[0m"
|
||||
|
||||
# Params start #
|
||||
local COLOR="${!1}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue