From ac48b0fa468c47ff5ac878191f2de37a9b76a49e Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 23 May 2018 08:11:58 -0300 Subject: De-uglify a bit todo and status outputs --- status | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'status') 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/ -- cgit v1.2.3