self/user

This commit is contained in:
Marc Beninca 2024-12-01 20:03:28 +01:00
parent 30b002c31e
commit b67107c737
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -11,13 +11,16 @@ RWX_SELF_NAME="rwx"
# │ variables │
# ╰───────────╯
RWX_ROOT_USER="${HOME}/${RWX_SELF_NAME}"
RWX_SHELL="$(cat "/proc/${$}/comm")"
RWX_SYSTEM_ROOT="/usr/local/lib"
RWX_MAIN_PATH="${RWX_ROOT_SYSTEM}/${RWX_MAIN_NAME}"
RWX_ROOT_SYSTEM="${RWX_SYSTEM_ROOT}/${RWX_SELF_NAME}"
rwx_self_user() {
echo "${HOME}/${RWX_SELF_NAME}"
}
# ╭──────╮
# │ core │
# ╰──────╯
@ -125,7 +128,7 @@ rwx_main() {
return 1
fi
# user root
rwx_source "${RWX_ROOT_USER}"
rwx_source "$(rwx_self_user)"
# run interactive extras
if rwx_shell_interactive; then
# check format