diff --git a/sh/core/code.sh b/sh/core/code.sh index 198112d..a11f6cc 100644 --- a/sh/core/code.sh +++ b/sh/core/code.sh @@ -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}" } # ╭──────┬───────╮ diff --git a/sh/shell/0.sh b/sh/shell/0.sh index ed847cb..92d5aaa 100644 --- a/sh/shell/0.sh +++ b/sh/shell/0.sh @@ -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 \${?})"