Skip to content

Commit

Permalink
added alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
dmalan committed Oct 7, 2024
1 parent fbd6ef1 commit 80d147e
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions etc/profile.d/codespace.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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

0 comments on commit 80d147e

Please sign in to comment.