diff --git a/sh/main.sh b/sh/main.sh index 470cf72..16ce907 100755 --- a/sh/main.sh +++ b/sh/main.sh @@ -26,9 +26,6 @@ RWX_SELF_NAME="rwx" # │ main │ variables │ # ╰──────┴───────────╯ -# currently running shell name -RWX_SHELL="$(cat "/proc/${$}/comm")" - # system root directory of the project RWX_ROOT_SYSTEM="/usr/local/lib/${RWX_SELF_NAME}" # user root directory of the project diff --git a/sh/shell/0.sh b/sh/shell/0.sh index 6a28c31..c52639b 100644 --- a/sh/shell/0.sh +++ b/sh/shell/0.sh @@ -2,6 +2,9 @@ # │ shell │ # ╰───────╯ +# currently running shell name +RWX_SHELL="$(cat "/proc/${$}/comm")" + _rwx_shell_color() { local code="${1}" case "${RWX_SHELL}" in