code/main
This commit is contained in:
parent
c131df87e5
commit
1e40941856
2 changed files with 4 additions and 4 deletions
|
@ -64,7 +64,7 @@ rwx_code_install() {
|
||||||
name="${RWX_MAIN_NAME}.${RWX_MAIN_EXTENSION}"
|
name="${RWX_MAIN_NAME}.${RWX_MAIN_EXTENSION}"
|
||||||
file="${root}/${name}"
|
file="${root}/${name}"
|
||||||
rwx_remove "${file}"
|
rwx_remove "${file}"
|
||||||
rwx_link "${file}" "${RWX_MAIN_PATH}"
|
rwx_link "${file}" "${rwx_code_main}"
|
||||||
while IFS= read -r command; do
|
while IFS= read -r command; do
|
||||||
file="${root}/${command}"
|
file="${root}/${command}"
|
||||||
rwx_remove "${file}"
|
rwx_remove "${file}"
|
||||||
|
@ -76,12 +76,12 @@ EOF
|
||||||
file="${target}/etc/profile.d/${RWX_MAIN_NAME}.${RWX_MAIN_EXTENSION}"
|
file="${target}/etc/profile.d/${RWX_MAIN_NAME}.${RWX_MAIN_EXTENSION}"
|
||||||
rwx_remove "${file}"
|
rwx_remove "${file}"
|
||||||
rwx_file_write "${file}" "\
|
rwx_file_write "${file}" "\
|
||||||
export ENV=\"${RWX_MAIN_PATH}\"
|
export ENV=\"${rwx_code_main}\"
|
||||||
"
|
"
|
||||||
# bash
|
# bash
|
||||||
file="${target}/etc/bash.bashrc"
|
file="${target}/etc/bash.bashrc"
|
||||||
rwx_remove "${file}"
|
rwx_remove "${file}"
|
||||||
rwx_link "${file}" "${RWX_MAIN_PATH}"
|
rwx_link "${file}" "${rwx_code_main}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# ╭──────┬───────╮
|
# ╭──────┬───────╮
|
||||||
|
|
|
@ -43,7 +43,7 @@ RWX_COLOR_RED="$(_rwx_shell_color 32)"
|
||||||
# ╰───────┴───────────╯
|
# ╰───────┴───────────╯
|
||||||
|
|
||||||
rwx_shell_configure() {
|
rwx_shell_configure() {
|
||||||
[ -n "${ENV}" ] || ENV="${RWX_MAIN_PATH}"
|
[ -n "${ENV}" ] || ENV="${rwx_code_main}"
|
||||||
export ENV
|
export ENV
|
||||||
# prompt
|
# prompt
|
||||||
PS1="\$(rwx_shell_prompt \${?})"
|
PS1="\$(rwx_shell_prompt \${?})"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue