From 3d5e4f5a68c404823abe95fa1c5100ca58a71af3 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 17 Nov 2024 17:40:02 +0100 Subject: [PATCH] sh --- shell/main.sh | 3 --- shell/shell.sh | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) 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