icalBuddy has a higher priority than remind(1); if the first one
is found, the latter won't be used.
&& PS1="<$ME> # " \
|| PS1="<$ME> \$ "
-# remind(1)
-type -p remind >/dev/null 2>&1
-if [ $? -eq 0 -a -r ~/.remind ]; then
- remind -h -g -t5 .remind | grep "^[0-9]"
+# icalBuddy(1)
+type -p icalBuddy >/dev/null 2>&1
+if [ $? -eq 0 ]; then
+ icalBuddy -f -n -npn -nc -ps "/ » /" -eep "url,notes" \
+ eventsToday+1 | grep "•"
[ $? -eq 0 ] && echo
+else
+ # remind(1)
+ type -p remind >/dev/null 2>&1
+ if [ $? -eq 0 -a -r ~/.remind ]; then
+ remind -h -g -t5 .remind | grep "^[0-9]"
+ [ $? -eq 0 ] && echo
+ fi
fi
# bash-specific initialization