This commit is contained in:
Marc Beninca 2024-11-16 02:44:04 +01:00
parent 62ae8d73cc
commit e8dfd1b98a
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -7,13 +7,13 @@ shell_color() {
local code="${1}"
case "${SH}" in
"bash")
printf "\\e[0"
printf "\e[0"
if [ -n "${code}" ]; then
printf "%s" ";${code}"
fi
;;
*)
printf "\\033["
printf "\033["
if [ -n "${code}" ]; then
printf "%s" "${code}"
else