aboutsummaryrefslogtreecommitdiff
path: root/status
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-05-23 08:11:58 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-05-23 08:11:58 -0300
commitac48b0fa468c47ff5ac878191f2de37a9b76a49e (patch)
treea1ebc4fdf055cf8fe5661f0ddf58fa3ec3e45f35 /status
parent03d3b1cc6f45049efc063dc7cfda35567c168713 (diff)
downloadscripts-ac48b0fa468c47ff5ac878191f2de37a9b76a49e.tar.gz
scripts-ac48b0fa468c47ff5ac878191f2de37a9b76a49e.tar.bz2
De-uglify a bit todo and status outputs
Diffstat (limited to 'status')
-rwxr-xr-xstatus7
1 files changed, 6 insertions, 1 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/