fix
This commit is contained in:
parent
5e9ae45748
commit
0eea7d052e
1 changed files with 3 additions and 2 deletions
|
@ -7,10 +7,11 @@ shell_color() {
|
||||||
# shellcheck disable=SC2154
|
# shellcheck disable=SC2154
|
||||||
case "${SH}" in
|
case "${SH}" in
|
||||||
"bash")
|
"bash")
|
||||||
printf "\e[0"
|
printf "\x01\e[0"
|
||||||
if [ -n "${code}" ]; then
|
if [ -n "${code}" ]; then
|
||||||
printf "%s" ";${code}"
|
printf "%s" ";${code}"
|
||||||
fi
|
fi
|
||||||
|
printf "m\x02"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
printf "\033["
|
printf "\033["
|
||||||
|
@ -19,9 +20,9 @@ shell_color() {
|
||||||
else
|
else
|
||||||
printf "0"
|
printf "0"
|
||||||
fi
|
fi
|
||||||
|
printf "m"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
printf "m"
|
|
||||||
}
|
}
|
||||||
SH_BROWN="$(shell_color 33)"
|
SH_BROWN="$(shell_color 33)"
|
||||||
SH_CYAN="$(shell_color 36)"
|
SH_CYAN="$(shell_color 36)"
|
||||||
|
|
Loading…
Reference in a new issue