diff --git a/sh/shell/0.sh b/sh/shell/0.sh index 7e56658..6a28c31 100644 --- a/sh/shell/0.sh +++ b/sh/shell/0.sh @@ -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