shell/main
All checks were successful
/ job (push) Successful in 5m27s

This commit is contained in:
Marc Beninca 2025-07-07 21:55:01 +02:00
parent efe07205fa
commit aec3d1a0af
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1,3 +1,7 @@
# ╭───────╮
# │ shell │
# ╰───────╯
_rwx_shell_color() {
local code="${1}"
case "${RWX_SHELL}" in
@ -19,6 +23,11 @@ _rwx_shell_color() {
;;
esac
}
# ╭───────┬───────────╮
# │ shell │ constants │
# ╰───────┴───────────╯
RWX_COLOR_BROWN="$(_rwx_shell_color 33)"
RWX_COLOR_CYAN="$(_rwx_shell_color 36)"
RWX_COLOR_DEFAULT="$(_rwx_shell_color)"
@ -26,6 +35,10 @@ RWX_COLOR_GREEN="$(_rwx_shell_color 31)"
RWX_COLOR_MAGENTA="$(_rwx_shell_color 35)"
RWX_COLOR_RED="$(_rwx_shell_color 32)"
# ╭───────┬───────────╮
# │ shell │ functions │
# ╰───────┴───────────╯
rwx_shell_configure() {
[ -n "${ENV}" ] || ENV="${RWX_MAIN_PATH}"
export ENV
@ -60,7 +73,6 @@ rwx_shell_configure() {
*) ;;
esac
}
rwx_shell_configure
rwx_shell_prompt() {
local date host id
@ -114,3 +126,13 @@ rwx_shell_prompt() {
# print
printf "%b" "${view}"
}
# ╭───────┬──────╮
# │ shell │ main │
# ╰───────┴──────╯
rwx_shell_main() {
rwx_shell_configure
}
rwx_shell_main