]> arthur.barton.de Git - ConfigScripts.git/blobdiff - sys/profile
Only check quota(1) if a filesystem with quotas is mounted
[ConfigScripts.git] / sys / profile
index 2e40616b5e6e3da2010fe3b17b695eb3944ea3d3..ce201d4d4fead80992ac9835689efc99f4382eff 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
@@ -129,7 +137,10 @@ fi
        && . /etc/ksh.kshrc
 
 # Check filesystem quotas
-which quota >/dev/null 2>&1
-[ $? -eq 0 ] && quota -q
+mount | grep quota >/dev/null 2>&1
+if [ $? -eq 0 ]; then
+       which quota >/dev/null 2>&1
+       [ $? -eq 0 ] && quota -q
+fi
 
 # -eof-