Skip to content

Commit 80d147e

Browse files
committed
added alerts
1 parent fbd6ef1 commit 80d147e

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

etc/profile.d/codespace.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# If not root
2-
if [ "$(whoami)" != "root" ]; then
2+
if [ `id -u` -ne 0 ]; then
3+
4+
# Library
5+
. /opt/cs50/lib/cli
36

47
# Check if running locally and set $RepositoryName if not already set
58
if [[ "$CODESPACES" != "true" && -z "$RepositoryName" ]]; then
@@ -85,12 +88,14 @@ if [ "$(whoami)" != "root" ]; then
8588

8689
# Helpers
8790
function _helped() {
88-
: # TODO
91+
: # TODO: invoke command that hides help50 button
8992
}
9093
function _helpful() {
91-
: # TODO
94+
_alert "🦆 Click `help50` for help" # Temporary, to introduce new feature
95+
: # TODO: invoke command that sends $1 to ddb50 as though from duck itself
9296
}
9397
function _helpless() {
94-
: # TODO
98+
_alert "🦆 Click `help50` for help" # Temporary, to introduce new feature
99+
: # TODO: invoke command that sends $1 to ddb50 as though from student
95100
}
96101
fi

0 commit comments

Comments
 (0)