self/user
This commit is contained in:
parent
30b002c31e
commit
b67107c737
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue