This commit is contained in:
Marc Beninca 2024-11-29 22:20:34 +01:00
parent 736fd791c2
commit 83a3a9d9ba
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1,6 +1,6 @@
_rwx_shell_color() {
local code="${1}"
case "${SH_SHELL}" in
case "${RWX_SHELL}" in
"bash")
printf "\x01\e[0"
if [ -n "${code}" ]; then
@ -33,7 +33,7 @@ rwx_shell_configure() {
PS1="\$(rwx_shell_prompt \${?})"
PS2="├ "
# specific
case "${SH_SHELL}" in
case "${RWX_SHELL}" in
"bash")
# completion
local root="/usr/share/bash-completion"
@ -117,7 +117,7 @@ rwx_shell_prompt() {
rwx_shell_setup() {
# shell
echo "export ENV=\"${ENV}\"" >"/etc/profile.d/${SH_NAME}.sh"
echo "export ENV=\"${ENV}\"" >"/etc/profile.d/${RWX_NAME}.sh"
# bash
local file="/etc/bash.bashrc"
rm --force --recursive "${file}"