aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xstatus7
-rwxr-xr-xtodo23
2 files changed, 20 insertions, 10 deletions
diff --git a/status b/status
index 052169b..3ac97d8 100755
--- a/status
+++ b/status
@@ -72,7 +72,7 @@ function status_run {
# Check your reminders
if which remind &> /dev/null && [ -e "$HOME/.reminders" ]; then
- remind ~/.reminders | grep -v '^No reminders.$'
+ remind ~/.reminders | grep -v '^No reminders.$'# | tr '[:upper:]' '[:lower:]'
fi
# Update your mrconfig and check all registered repositories
@@ -101,6 +101,11 @@ function status_run {
# Check if are dangling downloaded files
if [ -e "$HOME/load" ] && [ ! -z "`ls -1 ~/load/`" ]; then
+ # Print a newline if needed depending of the output of the previous commands
+ if [ ! -z "`postponed`" ] || [ ! -z "`unread-emails`" ]; then
+ echo ""
+ fi
+
echo "Dangling files at ~/load:"
echo ""
ls -lh ~/load/
diff --git a/todo b/todo
index 19eeb24..a774528 100755
--- a/todo
+++ b/todo
@@ -40,21 +40,26 @@ function todo_list {
# User's Taskwarrior
if which task &> /dev/null; then
- echo "taskwarrior:"
- echo ""
- task list 2> /dev/null
- echo ""
+ if [ "`task status:pending count`" != "0" ]; then
+ echo "taskwarrior:"
+ #echo ""
+ task list 2> /dev/null
+ echo ""
+ fi
fi
+ # Taskwarrior data from projects
+ SILENT=true tasks +$status list
+ echo ""
+
# User's Timewarrior
if which timew &> /dev/null; then
- timew | grep -v "^There is no active time tracking."
- echo ""
+ if ! timew | grep -q "^There is no active time tracking."; then
+ timew
+ echo ""
+ fi
fi
- # Timewarrior data from projects
- SILENT=true tasks +$status list
-
todo_find | while read todo; do
if [ "$todo" != "$NAME" ]; then
if [ ! -z "$status" ] && ! grep -q "\($status\)" $todo; then