]> arthur.barton.de Git - ConfigScripts.git/commitdiff
Added support for icalBuddy(1)
authorAlexander Barton <alex@barton.de>
Fri, 17 Sep 2010 09:50:37 +0000 (11:50 +0200)
committerAlexander Barton <alex@barton.de>
Fri, 17 Sep 2010 09:50:37 +0000 (11:50 +0200)
icalBuddy has a higher priority than remind(1); if the first one
is found, the latter won't be used.

sys/profile

index 2e40616b5e6e3da2010fe3b17b695eb3944ea3d3..97a7e67da6baad3e0c540144481df9af37c6db8f 100644 (file)
@@ -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