_sh_shell_color
This commit is contained in:
parent
f2544c4243
commit
aa1226f8f4
1 changed files with 7 additions and 7 deletions
14
sh/shell.sh
14
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
|
||||
|
|
Loading…
Reference in a new issue