self/name

This commit is contained in:
Marc Beninca 2024-11-29 23:52:46 +01:00
parent 4325ab4776
commit c032849e95
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 4 additions and 4 deletions

View file

@ -3,18 +3,18 @@
# ╰───────────╯
RWX_MAIN_NAME="main.sh"
RWX_NAME="rwx"
RWX_SELF_NAME="rwx"
# ╭───────────╮
# │ variables │
# ╰───────────╯
RWX_ROOT_USER="${HOME}/${RWX_NAME}"
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_NAME}"
RWX_ROOT_SYSTEM="${RWX_SYSTEM_ROOT}/${RWX_SELF_NAME}"
# ╭────────╮
# │ public │

View file

@ -125,7 +125,7 @@ rwx_shell_prompt() {
rwx_shell_setup() {
# shell
echo "export ENV=\"${ENV}\"" >"/etc/profile.d/${RWX_NAME}.sh"
echo "export ENV=\"${ENV}\"" >"/etc/profile.d/${RWX_SELF_NAME}.sh"
# bash
local file="/etc/bash.bashrc"
rm --force --recursive "${file}"