code/main

This commit is contained in:
Marc Beninca 2025-07-09 17:05:34 +02:00
parent c131df87e5
commit 1e40941856
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 4 additions and 4 deletions

View file

@ -64,7 +64,7 @@ rwx_code_install() {
name="${RWX_MAIN_NAME}.${RWX_MAIN_EXTENSION}"
file="${root}/${name}"
rwx_remove "${file}"
rwx_link "${file}" "${RWX_MAIN_PATH}"
rwx_link "${file}" "${rwx_code_main}"
while IFS= read -r command; do
file="${root}/${command}"
rwx_remove "${file}"
@ -76,12 +76,12 @@ EOF
file="${target}/etc/profile.d/${RWX_MAIN_NAME}.${RWX_MAIN_EXTENSION}"
rwx_remove "${file}"
rwx_file_write "${file}" "\
export ENV=\"${RWX_MAIN_PATH}\"
export ENV=\"${rwx_code_main}\"
"
# bash
file="${target}/etc/bash.bashrc"
rwx_remove "${file}"
rwx_link "${file}" "${RWX_MAIN_PATH}"
rwx_link "${file}" "${rwx_code_main}"
}
# ╭──────┬───────╮

View file

@ -43,7 +43,7 @@ RWX_COLOR_RED="$(_rwx_shell_color 32)"
# ╰───────┴───────────╯
rwx_shell_configure() {
[ -n "${ENV}" ] || ENV="${RWX_MAIN_PATH}"
[ -n "${ENV}" ] || ENV="${rwx_code_main}"
export ENV
# prompt
PS1="\$(rwx_shell_prompt \${?})"