self/user

This commit is contained in:
Marc Beninca 2024-12-01 22:10:05 +01:00
parent dc1fdbace7
commit 05e5d00a95
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -14,13 +14,10 @@ RWX_SELF_COMMAND="_${RWX_SELF_NAME}_cmd_"
# ╰───────────╯
RWX_ROOT_SYSTEM="/usr/local/lib/${RWX_SELF_NAME}"
RWX_SELF_USER="${HOME}/${RWX_SELF_NAME}"
RWX_MAIN_PATH="${RWX_ROOT_SYSTEM}/${RWX_MAIN_NAME}"
rwx_self_user() {
echo "${HOME}/${RWX_SELF_NAME}"
}
rwx_shell() {
cat "/proc/${$}/comm"
}
@ -129,7 +126,7 @@ rwx_main() {
return 1
fi
# user root
rwx_source "$(rwx_self_user)"
rwx_source "${RWX_SELF_USER}"
#
case "${0}" in
"bash" | \