From a93f0b7f46f8e7e04e78d77a97a7035753e2b0bf Mon Sep 17 00:00:00 2001 From: PrincessPi3 Date: Mon, 18 Aug 2025 22:35:15 -0600 Subject: [PATCH] hopefull6 ] --- esp-idf-tools-cmd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esp-idf-tools-cmd.sh b/esp-idf-tools-cmd.sh index 1b62c9b..aaca52e 100644 --- a/esp-idf-tools-cmd.sh +++ b/esp-idf-tools-cmd.sh @@ -28,8 +28,8 @@ if [[ "$1" == "--help" || "$1" == "help" || "$1" == "-h" || "$1" == "h" ]]; then exit fi +# check for running shell and set rcFile accordingly defShell=$(awk -F: -v user="$(whoami)" '$1 == user {print $NF}' /etc/passwd) - if [[ "$defShell" =~ zsh$ ]]; then echo -e "\nSelected zsh shell automatically\n" rcFile="$HOME/.zshrc"