aboutsummaryrefslogtreecommitdiff
path: root/status
blob: 98a11f000353aba0b6471e63be2ed05210862d4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
#
# Check the overall status of your work.
#

# 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