From 80d147e9e1186a6947d7d1d1c92897313de2cb5a Mon Sep 17 00:00:00 2001 From: "David J. Malan" Date: Mon, 7 Oct 2024 09:20:24 -0400 Subject: [PATCH] added alerts --- etc/profile.d/codespace.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/etc/profile.d/codespace.sh b/etc/profile.d/codespace.sh index 1a554459..6f3a0637 100644 --- a/etc/profile.d/codespace.sh +++ b/etc/profile.d/codespace.sh @@ -1,5 +1,8 @@ # If not root -if [ "$(whoami)" != "root" ]; then +if [ `id -u` -ne 0 ]; then + + # Library + . /opt/cs50/lib/cli # Check if running locally and set $RepositoryName if not already set if [[ "$CODESPACES" != "true" && -z "$RepositoryName" ]]; then @@ -85,12 +88,14 @@ if [ "$(whoami)" != "root" ]; then # Helpers function _helped() { - : # TODO + : # TODO: invoke command that hides help50 button } function _helpful() { - : # TODO + _alert "🦆 Click `help50` for help" # Temporary, to introduce new feature + : # TODO: invoke command that sends $1 to ddb50 as though from duck itself } function _helpless() { - : # TODO + _alert "🦆 Click `help50` for help" # Temporary, to introduce new feature + : # TODO: invoke command that sends $1 to ddb50 as though from student } fi