aboutsummaryrefslogtreecommitdiff
path: root/status
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-05-14 13:58:28 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-05-14 13:58:28 -0300
commit3c07f63390526c65e569648f2b3bc42465f9e135 (patch)
treed774107729d7823aa648ef16ddb6a0d5bb661771 /status
parentfec935a411d77e40957e6bf08ea62d001413d12c (diff)
downloadscripts-3c07f63390526c65e569648f2b3bc42465f9e135.tar.gz
scripts-3c07f63390526c65e569648f2b3bc42465f9e135.tar.bz2
Replace 'ztd' script by 'status' and 'done'
Diffstat (limited to 'status')
-rwxr-xr-xstatus35
1 files changed, 33 insertions, 2 deletions
diff --git a/status b/status
index b12e83b..98a11f0 100755
--- a/status
+++ b/status
@@ -1,6 +1,37 @@
#!/bin/bash
#
-# Check project status using mr.
+# Check the overall status of your work.
#
-mrconfig-updater && mr -m status
+# Parameters
+PROJECT="$1"
+
+# Dispatch
+if [ ! -z "$PROJECT" ]; then
+ # Check the status of the given project
+ cd $PROJECT &> /dev/null && git status
+else
+ # Ensure we are in the home folder
+ cd
+
+ # Check your reminders
+ if [ -e "$HOME/.reminders" ]; then
+ remind ~/.reminders | grep -v '^No reminders.$'
+ fi
+
+ # Update your mrconfig and check all registered repositories
+ mrconfig-updater && mr -m status
+
+ # Check your TODO lists
+ todo
+
+ # Check if you have mails to send
+ postponed
+
+ # Check if are dangling downloaded files
+ if [ -e "$HOME/load" ] && [ ! -z "`ls -1 ~/load/`" ]; then
+ echo "Dangling files at ~/load:"
+ echo ""
+ ls -lh ~/load/
+ fi
+fi