From aa1226f8f4bf0eb64b5ded1c2ec2f2231b5fafbe Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 19 Nov 2024 16:38:20 +0100 Subject: [PATCH] _sh_shell_color --- sh/shell.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sh/shell.sh b/sh/shell.sh index 39dee54..4a2c6ea 100644 --- a/sh/shell.sh +++ b/sh/shell.sh @@ -2,7 +2,7 @@ PS1="\$(shell_prompt \${?})" PS2="\ ├ " -shell_color() { +_sh_shell_color() { local code="${1}" case "${SH_SHELL}" in "bash") @@ -23,12 +23,12 @@ shell_color() { ;; esac } -SH_BROWN="$(shell_color 33)" -SH_CYAN="$(shell_color 36)" -SH_DEFAULT="$(shell_color)" -SH_GREEN="$(shell_color 31)" -SH_MAGENTA="$(shell_color 35)" -SH_RED="$(shell_color 32)" +SH_BROWN="$(_sh_shell_color 33)" +SH_CYAN="$(_sh_shell_color 36)" +SH_DEFAULT="$(_sh_shell_color)" +SH_GREEN="$(_sh_shell_color 31)" +SH_MAGENTA="$(_sh_shell_color 35)" +SH_RED="$(_sh_shell_color 32)" shell_configure() { case "${SH_SHELL}" in