diff --git a/shell/main.sh b/shell/main.sh index 327c956..85888e7 100644 --- a/shell/main.sh +++ b/shell/main.sh @@ -1,8 +1,5 @@ [ -n "${ENV}" ] || export ENV="/etc/shell/main.sh" -SH="$(cat /proc/$$/comm)" -export SH - main_source_directory() { local path="${1}" if [ -d "${path}" ]; then diff --git a/shell/shell.sh b/shell/shell.sh index bfb6b98..00174fc 100644 --- a/shell/shell.sh +++ b/shell/shell.sh @@ -1,10 +1,10 @@ PS1="\$(shell_prompt \${?})" PS2="\ ├ " +SH="$(cat /proc/$$/comm)" shell_color() { local code="${1}" - # shellcheck disable=SC2154 case "${SH}" in "bash") printf "\x01\e[0" @@ -130,7 +130,6 @@ x() { "${@}" } -# shellcheck disable=SC2154 [ "${SH}" = "bash" ] || return # shellcheck disable=SC3033