#!/bin/bash

project="$(shuf -n1 <(cat ~/.cache/projects-remote-*))"
printf 'work on %s project: %s\n\n' "$(grep -l "$project" ~/.cache/projects-remote-* | sed 's/.*remote-//')" "$project"

echo 'work on this vcs repo:'
grep --colour=auto --fixed-strings --context 5 -- "$(shuf -n1 <(grep -v '^ *$' ~/.cache/repo-status))" ~/.cache/repo-status

echo ; echo 'work on this todo item:'
grep --colour=auto --fixed-strings --context 5 -- "$(shuf -n1 <(find ~/todo/* ! -iname urls -print0 | xargs -0 cat | grep -v '^ *$'))" ~/todo/*
