This commit is contained in:
Marc Beninca 2024-11-17 02:05:07 +01:00
parent 5e9ae45748
commit 0eea7d052e
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -7,10 +7,11 @@ shell_color() {
# shellcheck disable=SC2154
case "${SH}" in
"bash")
printf "\e[0"
printf "\x01\e[0"
if [ -n "${code}" ]; then
printf "%s" ";${code}"
fi
printf "m\x02"
;;
*)
printf "\033["
@ -19,9 +20,9 @@ shell_color() {
else
printf "0"
fi
printf "m"
;;
esac
printf "m"
}
SH_BROWN="$(shell_color 33)"
SH_CYAN="$(shell_color 36)"