self/name
This commit is contained in:
parent
4325ab4776
commit
c032849e95
2 changed files with 4 additions and 4 deletions
|
@ -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 │
|
||||
|
|
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue