setup/main

This commit is contained in:
Marc Beninca 2024-12-01 18:35:33 +01:00
parent 428ea3e9e5
commit 9b0b4ecb80
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -117,9 +117,10 @@ rwx_shell_prompt() {
rwx_shell_setup() {
# shell
echo "export ENV=\"${ENV}\"" >"/etc/profile.d/${RWX_SELF_NAME}.sh"
echo "export ENV=\"${RWX_MAIN_PATH}\"" \
>"/etc/profile.d/${RWX_SELF_NAME}.sh"
# bash
local file="/etc/bash.bashrc"
rm --force --recursive "${file}"
ln --symbolic "${ENV}" "${file}"
ln --symbolic "${RWX_MAIN_PATH}" "${file}"
}