_sh_shell_color

This commit is contained in:
Marc Beninca 2024-11-19 16:38:20 +01:00
parent f2544c4243
commit aa1226f8f4
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -2,7 +2,7 @@ PS1="\$(shell_prompt \${?})"
PS2="\ PS2="\
" "
shell_color() { _sh_shell_color() {
local code="${1}" local code="${1}"
case "${SH_SHELL}" in case "${SH_SHELL}" in
"bash") "bash")
@ -23,12 +23,12 @@ shell_color() {
;; ;;
esac esac
} }
SH_BROWN="$(shell_color 33)" SH_BROWN="$(_sh_shell_color 33)"
SH_CYAN="$(shell_color 36)" SH_CYAN="$(_sh_shell_color 36)"
SH_DEFAULT="$(shell_color)" SH_DEFAULT="$(_sh_shell_color)"
SH_GREEN="$(shell_color 31)" SH_GREEN="$(_sh_shell_color 31)"
SH_MAGENTA="$(shell_color 35)" SH_MAGENTA="$(_sh_shell_color 35)"
SH_RED="$(shell_color 32)" SH_RED="$(_sh_shell_color 32)"
shell_configure() { shell_configure() {
case "${SH_SHELL}" in case "${SH_SHELL}" in