rwx/shell

This commit is contained in:
Marc Beninca 2024-12-01 22:11:52 +01:00
parent 05e5d00a95
commit 77a53428e1
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 3 additions and 3 deletions

View file

@ -17,7 +17,7 @@ x() {
"${@}"
}
[ "$(rwx_shell)" = "bash" ] || return
[ "${RWX_SHELL}" = "bash" ] || return
# shellcheck disable=SC3033
..() {

View file

@ -1,6 +1,6 @@
_rwx_shell_color() {
local code="${1}"
case "$(rwx_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 "$(rwx_shell)" in
case "${RWX_SHELL}" in
"bash")
# completion
local root="/usr/share/bash-completion"