From 2e2926ffc9b0dc708a9e30ffab2d726c2b604d2c Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Fri, 17 Sep 2010 11:50:37 +0200 Subject: [PATCH 1/1] Added support for icalBuddy(1) icalBuddy has a higher priority than remind(1); if the first one is found, the latter won't be used. --- sys/profile | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/sys/profile b/sys/profile index 2e40616..97a7e67 100644 --- a/sys/profile +++ b/sys/profile @@ -111,11 +111,19 @@ fi && 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 -- 2.39.2